diff options
author | Thomas Pugliese <thomas.pugliese@gmail.com> | 2014-08-07 15:45:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 16:03:21 -0700 |
commit | 675f0ab2fe5a0f7325208e60b617a5f32b86d72c (patch) | |
tree | 8e4fbaf27b6c4851b6d33928b2064f21268c687e /drivers/usb | |
parent | 9c491c372d677b6420e0f8c6361fe422791662cc (diff) | |
download | op-kernel-dev-675f0ab2fe5a0f7325208e60b617a5f32b86d72c.zip op-kernel-dev-675f0ab2fe5a0f7325208e60b617a5f32b86d72c.tar.gz |
uwb: init beacon cache entry before registering uwb device
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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions