staging: ath6kl: Fixing a NULL pointer exception
authorVipin Mehta <vmehta@atheros.com>
Fri, 18 Feb 2011 21:13:02 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 21:28:49 +0000 (13:28 -0800)
commitda101d563503d399d92412e833b6d5ae49c8ee5d
tree2d1ef1125c38027b8d84f20dee7f797d6613730b
parent6642a67c552e6d525913bb5fb4a00b2008213451
staging: ath6kl: Fixing a NULL pointer exception

The driver was dereferencing a NULL pointer because of the device instance
being registered via the set_wiphy_dev() function. The function
ar6000_avail_ev() was passing the argument as NULL instead of using the one
returned by the MMC stack through the probe callback.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/os/linux/ar6000_drv.c