Re: [PATCH] mmc_test: initialize mmc_test_lock statically

From: Pierre Ossman
Date: Sat Sep 20 2008 - 07:04:18 EST


On Sat, 13 Sep 2008 19:03:32 +0900
Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> The mutex mmc_test_lock is initialized at every time mmc_test device
> is probed. Probing another mmc_test device may break the mutex, if
> the probe function is called while the mutex is locked.
>
> This patch fixes it by statically initializing mmc_test_lock.
>
> Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
> Cc: Pierre Ossman <drzeus-mmc@xxxxxxxxx>
> ---

Also applied.

--
-- Pierre Ossman

Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org

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
encryption.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/