diff options
| author | Andrew Morton <[email protected]> | 2008-09-05 21:00:24 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-09-05 21:39:38 +0000 |
| commit | 70bb08962ea9bd50797ae9f16b2493f5f7c65053 (patch) | |
| tree | 301692bce950f064633b80a93cbb808bead41351 /security/selinux/hooks.c | |
| parent | tracehook: comment pasto fixes (diff) | |
| download | kernel-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
