]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
bcmdhd:fix kernel panic due to early free of ndev
authorBibhay Ranjan <bibhayr@nvidia.com>
Fri, 24 Oct 2014 21:08:01 +0000 (14:08 -0700)
committerDhiren Parmar <dparmar@nvidia.com>
Wed, 29 Oct 2014 11:43:22 +0000 (04:43 -0700)
commitb9c945f7a049d2f1aee68d613904bffccce8b5d0
tree67e32e82c90159168d09628e6803d114a6fc94f7
parent6c77d5675d871d1fdcb7254b05fc4ff80ad40f70
bcmdhd:fix kernel panic due to early free of ndev

because of http://git-master/r/555458, net_device
structure was moved to some other context, which
eventually was doing free_netdev and an early
release of memory which resulted in kernel panic.

moving free_netdev back to it original context.

However, free_netdev has to be synchronized with
thread wl_event_handler as per Bug 200040067. So,
this syncronization has to be done by semaphore
netif_sem using a writers lock.

This ensures Bug 200040067 also remains fixed

Bug 200040067
Bug 200048503

Change-Id: Ie2c664dc747cac4fba49c5edfe7a818d1bcae7ca
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/562973
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
drivers/net/wireless/bcmdhd/dhd_linux.c
drivers/net/wireless/bcmdhd/wl_cfg80211.c