android_kernel_google_msm/drivers/uwb
Thomas Pugliese 96eb53749f uwb: init beacon cache entry before registering uwb device
commit 675f0ab2fe upstream.

Make sure the uwb_dev->bce entry is set before calling uwb_dev_add in
uwbd_dev_onair so that usermode will only see the device after it is
properly initialized.  This fixes a kernel panic that can occur if
usermode tries to access the IEs sysfs attribute of a UWB device before
the driver has had a chance to set the beacon cache entry.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2014-12-01 18:02:28 +08:00
..
i1480
address.c
allocator.c
beacon.c
driver.c
drp-avail.c
drp-ie.c
drp.c
est.c
hwa-rc.c uwb: fix error handling 2012-04-18 13:15:51 -07:00
ie-rcv.c
ie.c
Kconfig
lc-dev.c uwb: init beacon cache entry before registering uwb device 2014-12-01 18:02:28 +08:00
lc-rc.c
Makefile
neh.c uwb: fix use of del_timer_sync() in interrupt 2012-04-18 13:15:51 -07:00
pal.c
radio.c
reset.c
rsv.c
scan.c
umc-bus.c
umc-dev.c
umc-drv.c
uwb-debug.c
uwb-internal.h
uwbd.c
whc-rc.c
whci.c