aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2009-04-30 10:06:19 -0400
committerGreg Kroah-Hartman <[email protected]>2009-05-08 19:34:57 -0700
commitc45d63202fbaccef7ef7946c03f27f72c809b1cc (patch)
treef9dd1d104167b9443a6d7c7a5f1f693052023675 /net/unix/af_unix.c
parent031defd11ee11753110098603236a4257b2cc03d (diff)
usb-serial: ftdi_sio: fix reference counting of ftdi_private
This patch (as1238) adds proper reference counting for ftdi_sio's private data structure. Without it, the driver will free the structure while it is still in use if the user unplugs the serial device before closing the device file. The patch also replaces a slightly dangerous cancel_delayed_work/flush_scheduled_work pair with cancel_delayed_work_sync, which is always safer. Signed-off-by: Alan Stern <[email protected]> Reported-by: Daniel Mack <[email protected]> Tested-by: Daniel Mack <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions