aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2008-09-05 21:00:24 +0000
committerLinus Torvalds <[email protected]>2008-09-05 21:39:38 +0000
commit70bb08962ea9bd50797ae9f16b2493f5f7c65053 (patch)
tree301692bce950f064633b80a93cbb808bead41351 /security/selinux/hooks.c
parenttracehook: comment pasto fixes (diff)
downloadkernel-70bb08962ea9bd50797ae9f16b2493f5f7c65053.tar.gz
kernel-70bb08962ea9bd50797ae9f16b2493f5f7c65053.zip
drivers/mmc/card/block.c: fix refcount leak in mmc_block_open()
mmc_block_open() increments md->usage although it returns with -EROFS when default mounting a MMC/SD card with write protect switch on. This reference counting bug prevents /dev/mmcblkX from being released on card removal, and situation worsen with reinsertion until the minor number range runs out. Reported-by: <[email protected]> Acked-by: Pierre Ossman <[email protected]> Cc: <[email protected]> [2.6.25.x, 2.6.26.x] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions