diff options
| author | Ohad Ben-Cohen <[email protected]> | 2011-03-08 21:32:02 +0000 |
|---|---|---|
| committer | Chris Ball <[email protected]> | 2011-03-08 21:55:04 +0000 |
| commit | bad3babace2ee4d1763b4016a662a5c660ab92e9 (patch) | |
| tree | d0a3cfeebd22f9ec41ae14a00d053e6dff12df62 /net/unix/af_unix.c | |
| parent | Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
| download | kernel-bad3babace2ee4d1763b4016a662a5c660ab92e9.tar.gz kernel-bad3babace2ee4d1763b4016a662a5c660ab92e9.zip | |
mmc: fix CONFIG_MMC_UNSAFE_RESUME regression
30201e7f3 ("mmc: skip detection of nonremovable cards on rescan")
allowed skipping detection of nonremovable cards on mmc_rescan().
The intention was to only skip detection of hardwired cards that
cannot be removed, so make sure this is indeed the case by directly
checking for (lack of) MMC_CAP_NONREMOVABLE, instead of using
mmc_card_is_removable(), which is overloaded with
CONFIG_MMC_UNSAFE_RESUME semantics.
The user-visible symptom of the bug this patch fixes is that no
"mmc: card XXXX removed" message appears in dmesg when a card is
removed and CONFIG_MMC_UNSAFE_RESUME=y.
Reported-and-tested-by: Dmitry Shmidt <[email protected]>
Reported-and-tested-by: Maxim Levitsky <[email protected]>
Signed-off-by: Ohad Ben-Cohen <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
