From: Jesper Juhl Date: Fri, 21 Jan 2011 19:40:54 +0000 (-0600) Subject: rtlwifi: Fix possible NULL dereference X-Git-Tag: v2.6.38-rc3~29^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdc4bf652bc0271ba8f1f25bbd3dbac90bead44e;p=pandora-kernel.git rtlwifi: Fix possible NULL dereference In drivers/net/wireless/rtlwifi/pci.c::_rtl_pci_rx_interrupt() we call dev_alloc_skb(), which may fail and return NULL, but we do not check the returned value against NULL before dereferencing the returned pointer. This may lead to a NULL pointer dereference which means we'll crash - not good. In a separate call to dev_alloc_skb(), the debug level is changed so that the failure message will always be logged. Signed-off-by: Jesper Juhl Signed-off-by: Larry Finger Signed-off-by: John W. Linville --- Reading git-diff-tree failed