mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
n_gsm: replace kfree_skb w/ appropriate dev_* versions
commit 329e56780e
upstream.
Drivers are supposed to use the dev_* versions of the kfree_skb
interfaces. In a couple of cases we were called with IRQs
disabled as well which kfree_skb() does not expect.
Replaced kfree_skb calls w/ dev_kfree_skb and dev_kfree_skb_any
Signed-off-by: Russ Gorby <russ.gorby@intel.com>
Tested-by: Yin, Fengwei <fengwei.yin@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
401a93e7e7
commit
65947f14c1
1 changed files with 4 additions and 4 deletions
|
@ -879,7 +879,7 @@ static int gsm_dlci_data_output_framed(struct gsm_mux *gsm,
|
|||
if (len > gsm->mtu) {
|
||||
if (dlci->adaption == 3) {
|
||||
/* Over long frame, bin it */
|
||||
kfree_skb(dlci->skb);
|
||||
dev_kfree_skb_any(dlci->skb);
|
||||
dlci->skb = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
@ -908,7 +908,7 @@ static int gsm_dlci_data_output_framed(struct gsm_mux *gsm,
|
|||
skb_pull(dlci->skb, len);
|
||||
__gsm_data_queue(dlci, msg);
|
||||
if (last) {
|
||||
kfree_skb(dlci->skb);
|
||||
dev_kfree_skb_any(dlci->skb);
|
||||
dlci->skb = NULL;
|
||||
}
|
||||
return size;
|
||||
|
@ -1688,7 +1688,7 @@ static void gsm_dlci_free(struct kref *ref)
|
|||
dlci->gsm->dlci[dlci->addr] = NULL;
|
||||
kfifo_free(dlci->fifo);
|
||||
while ((dlci->skb = skb_dequeue(&dlci->skb_list)))
|
||||
kfree_skb(dlci->skb);
|
||||
dev_kfree_skb(dlci->skb);
|
||||
kfree(dlci);
|
||||
}
|
||||
|
||||
|
@ -2039,7 +2039,7 @@ void gsm_cleanup_mux(struct gsm_mux *gsm)
|
|||
{
|
||||
int i;
|
||||
struct gsm_dlci *dlci = gsm->dlci[0];
|
||||
struct gsm_msg *txq, *utxq;
|
||||
struct gsm_msg *txq, *ntxq;
|
||||
struct gsm_control *gc;
|
||||
|
||||
gsm->dead = 1;
|
||||
|
|
Loading…
Reference in a new issue