diff options
| author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-11-29 12:15:50 -0400 |
|---|---|---|
| committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-01 21:04:43 -0200 |
| commit | b78d7b4f204a6ba1901af36c95e10fded9816054 (patch) | |
| tree | 7c9106a631778aee9ffdeca94e0054a5fe818412 /net/unix/af_unix.c | |
| parent | eeb366564be7c311b31c70821d18a43a8a57f9bc (diff) | |
| download | olio-linux-3.10-b78d7b4f204a6ba1901af36c95e10fded9816054.tar.xz olio-linux-3.10-b78d7b4f204a6ba1901af36c95e10fded9816054.zip | |
Bluetooth: Fix error handling for l2cap_init()
create_singlethread_workqueue() may fail with errors such as -ENOMEM. If
this happens, the return value is not set to a negative value and the
module load will succeed. It will then crash on module unload because of
a destroy_workqueue() call on a NULL pointer.
Additionally, the _busy_wq workqueue is not being destroyed if any
errors happen on l2cap_init().
Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions