summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2014-08-07 15:45:35 -0500
committerBen Hutchings <ben@decadent.org.uk>2014-11-05 20:27:41 +0000
commit126531ff8a7a8bec5517b6baaada5b2e7560fc89 (patch)
treea0859feb0208dfbd2a99c494eefe05a35aa3aced /kernel/events
parent95c263be9920e6993750b98007b84c6e724e9e93 (diff)
uwb: init beacon cache entry before registering uwb device
commit 675f0ab2fe5a0f7325208e60b617a5f32b86d72c 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> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions