mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Check for NULL dereference before access
Check for NULL dereference before accessing it. Change-Id: Id2dc5f2c0f54f0c7681d2a26a53e7190ef46aba2 CRs-Fixed: 2668241
This commit is contained in:
parent
b6a71494fe
commit
ecade686b9
1 changed files with 3 additions and 1 deletions
|
|
@ -835,13 +835,15 @@ dp_rx_fisa_flush_tcp_flow(struct dp_vdev *vdev,
|
|||
{
|
||||
qdf_nbuf_t head_skb = fisa_flow->head_skb;
|
||||
struct iphdr *head_skb_iph;
|
||||
struct skb_shared_info *shinfo = skb_shinfo(head_skb);
|
||||
struct skb_shared_info *shinfo;
|
||||
|
||||
if (!head_skb) {
|
||||
dp_fisa_debug("Already flushed");
|
||||
return;
|
||||
}
|
||||
|
||||
shinfo = skb_shinfo(head_skb);
|
||||
|
||||
/* Update the head_skb before flush */
|
||||
head_skb->hash = fisa_flow->flow_hash;
|
||||
head_skb->sw_hash = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue