aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorGeorge Spelvin <[email protected]>2013-02-12 02:27:20 -0500
committerGreg Kroah-Hartman <[email protected]>2013-02-13 09:40:35 -0800
commitd953e0e837e65ecc1ddaa4f9560f7925878a0de6 (patch)
tree64728d65488a9f85836f570640b1fec863737a52 /net/lapb/lapb_in.c
parent03a7ffe4e542310838bac70ef85acc17536b6d7c (diff)
pps: Fix a use-after free bug when unregistering a source.
Remove the cdev from the system (with cdev_del) *before* deallocating it (in pps_device_destruct, called via kobject_put from device_destroy). Also prevent deallocating a device with open file handles. A better long-term fix is probably to remove the cdev from the pps_device entirely, and instead have all devices reference one global cdev. Then the deallocation ordering becomes simpler. But that's more complex and invasive change, so we leave that for later. Signed-off-by: George Spelvin <[email protected]> Cc: stable <[email protected]> Acked-by: Rodolfo Giometti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions