]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference
authorAditya Pakki <pakki001@umn.edu>
Wed, 20 Mar 2019 17:02:49 +0000 (12:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Mar 2019 07:32:57 +0000 (08:32 +0100)
commit6e232622458ce9f8a8a6431b41170ca6168d2ee9
treef9aabb81d3396895d5558ce6530742f5cb2203a2
parentaf9f8a1650a21a2b9407ebd11f76bdf77a47f026
staging: rtlwifi: rtl8822b: fix to avoid potential NULL pointer dereference

skb allocated via dev_alloc_skb can fail and return a NULL pointer.
This patch avoids such a scenario and returns, consistent with other
invocations.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/rtl8822be/fw.c