aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSaket Saurabh <ssaurabh@codeaurora.org>2014-06-11 12:20:51 +0530
committerSaket Saurabh <ssaurabh@codeaurora.org>2014-06-12 12:03:07 +0530
commit4aebedc75270893dc0538639e3cec3b33095de74 (patch)
tree41f1e541b1cd4414a965a6806f1e8ae004cf7772 /net/unix/af_unix.c
parentda6b67eaba9703391f040f2eee79a714253bb04a (diff)
usb: u_serial: Fix NULL pointer dereference in u_serial tty callbacks
The tty driver data is initialized in gs_open() during port open and is set to NULL in gs_close() as part of port close. It is possible that TTY may invoke the registered u_serial tty callback methods after port is closed. This race between gs_close() and tty callback methods, leads to NULL pointer dereference. Fix the issue by adding check for tty driver data in all the u_serial tty callback methods. CRs-Fixed: 678702 Change-Id: I9e45f1927f9610fc8567edb8e609a10f19c00017 Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions