[lkml]   [2008]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: mmc/card/block.c : mmc_blk_open readonly mount bug?
On Thu, 4 Sep 2008 16:08:08 -0700
Andrew Morton <> wrote:

> From: Andrew Morton <>
> 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: <>
> Cc: Pierre Ossman <>
> Cc: <> [2.6.25.x, 2.6.26.x]
> Signed-off-by: Andrew Morton <>
> ---

I wonder how that bug has been able to go unnoticed for so long...

Acked-by: Pierre Ossman <>

-- Pierre Ossman

Linux kernel, MMC maintainer
rdesktop, core developer

WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2008-09-05 07:09    [W:0.058 / U:4.788 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site