qcacmn: fix potential NULL pointer dereference issue
Fix potential NULL pointer dereference issue in dp_rx_buffer_pool_refill(). Change-Id: I728077fac9f5062c68d92bb219b305b61fb1e9f0 CRs-Fixed: 2858208
Cette révision appartient à :

révisé par
snandini

Parent
c8963655ef
révision
174c6614a1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -35,7 +35,7 @@ bool dp_rx_buffer_pool_refill(struct dp_soc *soc, qdf_nbuf_t nbuf, u8 mac_id)
|
||||
qdf_nbuf_t next_nbuf, first_nbuf, refill_nbuf;
|
||||
bool consumed = false;
|
||||
|
||||
if (!bufpool->is_initialized)
|
||||
if (!bufpool->is_initialized || !pdev)
|
||||
return consumed;
|
||||
|
||||
/* process only buffers of RXDMA ring */
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur