aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorFederico Vaga <[email protected]>2011-10-29 07:45:39 +0000
committerGreg Kroah-Hartman <[email protected]>2011-11-27 02:34:14 +0000
commitdf30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d (patch)
tree5bd4f9b7050691a53abfff32f1218cadd4425a2b /fs/btrfs/async-thread.c
parentstaging: comedi: fix oops for USB DAQ devices. (diff)
downloadkernel-df30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d.tar.gz
kernel-df30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d.zip
Staging: comedi: fix mmap_count
In comedi_fops, mmap_count is decremented at comedi_vm_ops->close but it is not incremented at comedi_vm_ops->open. This may result in a negative counter. The patch introduces the open method to keep the counter consistent. The bug was triggerd by this sample code: mmap(0, ...., comedi_fd); fork(); exit(0); Acked-by: Alessandro Rubini <[email protected]> Signed-off-by: Federico Vaga <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions