]> git.baikalelectronics.ru Git - kernel.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)
committerChris Ball <cjb@laptop.org>
Sun, 26 Sep 2010 20:27:05 +0000 (16:27 -0400)
commit19d6d7d6ad32b8b253f734787a96a30fb459b13a
tree8ba7a24a1c7dfe696bfadf4035f39011eba8d49a
parenta3e807db4a014d317ff5927ecdb6879847c02a30
mmc: sdhci-s3c: fix NULL ptr access in sdhci_s3c_remove

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c