]> git.baikalelectronics.ru Git - kernel.git/commit
b43: fix NULL pointer dereference in b43_phy_copy()
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 8 Nov 2014 12:59:42 +0000 (13:59 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Nov 2014 18:10:24 +0000 (13:10 -0500)
commitb59eccefc49d21e5d1ac132dd7428ac78326478b
treefb64958180a4f4d6593781eb699f6206cc84cd2e
parentfeb86c1ced4363bfe5494475d1c390e652b3be44
b43: fix NULL pointer dereference in b43_phy_copy()

phy_read and phy_write are not set for every phy any more sine this:
commit bdaeb5e6c3cfb4b1ed99df7531171cb6da3d4185
Author: Rafał Miłecki <zajec5@gmail.com>
Date:   Thu Jul 31 21:59:43 2014 +0200

    b43: don't duplicate common PHY read/write ops

b43_phy_copy() accesses phy_read and phy_write directly and will fail
with some phys. This patch fixes the regression by using the
b43_phy_read() and b43_phy_write() functions which should be used for
read and write access.

This should fix this bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=87731

Reported-by: Volker Kempter <v.kempter@pe.tu-clausthal.de>
Tested-by: Volker Kempter <v.kempter@pe.tu-clausthal.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_common.c