]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
bcmdhd: check NULL pointer in cfg80211 callbacks
authorbibhayr <bibhayr@nvidia.com>
Sat, 28 Jun 2014 02:25:11 +0000 (19:25 -0700)
committerEric Chuang <echuang@nvidia.com>
Sun, 29 Jun 2014 23:12:34 +0000 (16:12 -0700)
commitdbdc9e41eed97b0e9f29651f0f2c70c056165338
treebf12312c02b06dbdc6f87c8010c2a5c5a94d74e8
parentb8d8da5fcf35f365166479302183fe3ed1cc8e7f
bcmdhd: check NULL pointer in cfg80211 callbacks

some of the callbacks does not have the NULL
pointer check for wl. So, add wl NULL check for
every function. If net device gets unregistered
and there is another call on wl, kernel crash
happens. This will avoid all the crashes.

Bug 200015171

Change-Id: I15a7de6ba36caf7037c7a37a530f1829e2f94cf0
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/432450
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Kevin Bruckert <kbruckert@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c