mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
staging: ks7010: don't print skb->dev->name if skb is null
A null pointer dereference will occur when skb is null and skb->dev->name is printed. Replace the skb->dev->name with plain text "ks_wlan" to fix this. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9afe11e956
commit
95d2a32466
1 changed files with 2 additions and 4 deletions
|
|
@ -485,8 +485,7 @@ void hostif_data_indication(struct ks_wlan_private *priv)
|
|||
netif_rx(skb);
|
||||
} else {
|
||||
printk(KERN_WARNING
|
||||
"%s: Memory squeeze, dropping packet.\n",
|
||||
skb->dev->name);
|
||||
"ks_wlan: Memory squeeze, dropping packet.\n");
|
||||
priv->nstats.rx_dropped++;
|
||||
}
|
||||
break;
|
||||
|
|
@ -521,8 +520,7 @@ void hostif_data_indication(struct ks_wlan_private *priv)
|
|||
netif_rx(skb);
|
||||
} else {
|
||||
printk(KERN_WARNING
|
||||
"%s: Memory squeeze, dropping packet.\n",
|
||||
skb->dev->name);
|
||||
"ks_wlan: Memory squeeze, dropping packet.\n");
|
||||
priv->nstats.rx_dropped++;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue