]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-s3c: fix NULL ptr access in sdhci_s3c_remove
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 23 Sep 2010 14:22:05 +0000 (16:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:43:55 +0000 (21:43 -0700)
commitce6258fde20a9d6bb213a8c2acb6fe8a003d6c7b
tree63a35e4b5501e9c762fe459f9d347a55e083c943
parentf4fe0c68bc27a9d5d26fdaa13e308a6acfde8bba
mmc: sdhci-s3c: fix NULL ptr access in sdhci_s3c_remove

commit 9320f7cbbdd5febf013b0e91db29189724057738 upstream.

If not all clocks have been defined in platform data, the driver will
cause a null pointer dereference when it is removed. This patch fixes
this issue.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/host/sdhci-s3c.c