]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: Fix possible NULL pointer dereference in _dma_ctrlflags()
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 29 Nov 2012 13:36:00 +0000 (07:36 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 19:00:39 +0000 (14:00 -0500)
commitbe09579d6926ac56a125d90cf57cb9ca3e3f8901
tree52f2d9ef31ec25bdaacfde9e9163076cdc3837fa
parenta883fcd9b15326b265a672fbae725023da77137d
brcmsmac: Fix possible NULL pointer dereference in _dma_ctrlflags()

There's a debug message to warn if this function is passed a NULL
pointer, but in order to print the message we have to dereference the
pointer. Obviously this isn't a good idea, so remove the message.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/dma.c