diff options
author | Dean Jenkins <Dean_Jenkins@mentor.com> | 2015-06-23 16:59:32 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-07-23 15:10:50 (GMT) |
commit | 2baea85dec1aebe0b100d4836dee8bcf29a51e94 (patch) | |
tree | 4e64ae9832fb263dd317b89e424456a98838ff56 /fs/nls/Makefile | |
parent | d10270ce941ee89afd74076ea3ed8dbef8a0ff25 (diff) | |
download | linux-2baea85dec1aebe0b100d4836dee8bcf29a51e94.tar.xz |
Bluetooth: L2CAP ERTM shutdown protect sk and chan
During execution of l2cap_sock_shutdown() which might
sleep, the sk and chan structures can be in an unlocked
condition which potentially allows the structures to be
freed by other running threads. Therefore, there is a
possibility of a malfunction or memory reuse after being
freed.
Keep the sk and chan structures alive during the
execution of l2cap_sock_shutdown() by using their
respective hold and put functions. This allows the structures
to be freeable at the end of l2cap_sock_shutdown().
Signed-off-by: Kautuk Consul <Kautuk_Consul@mentor.com>
Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'fs/nls/Makefile')
0 files changed, 0 insertions, 0 deletions