summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-01-22 23:29:16 +0100
committerBen Dooks <ben-linux@fluff.org>2010-01-26 01:50:03 +0100
commitf6b56704f78b2667fc8f61d2f398931fbc032b62 (patch)
treef90e6168fee4f5de76ad43dfbda3d65b4e4305f9 /arch/arm
parentARM: S5PV210: Add serial port support (diff)
downloadlinux-f6b56704f78b2667fc8f61d2f398931fbc032b62.tar.xz
linux-f6b56704f78b2667fc8f61d2f398931fbc032b62.zip
ARM: SAMSUNG: Fix null pointer dereference in ADC driver
ARM: SAMSUNG: Fix null pointer dereference in ADC driver Use struct adc_device instead of relying on client (which could be NULL) when checking for SoC type. Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-samsung/adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c
index 120b7902fc2f..c7659b7378b1 100644
--- a/arch/arm/plat-samsung/adc.c
+++ b/arch/arm/plat-samsung/adc.c
@@ -295,7 +295,7 @@ static irqreturn_t s3c_adc_irq(int irq, void *pw)
}
exit:
- if (platform_get_device_id(client->pdev)->driver_data == TYPE_S3C64XX) {
+ if (platform_get_device_id(adc->pdev)->driver_data == TYPE_S3C64XX) {
/* Clear ADC interrupt */
writel(0, adc->regs + S3C64XX_ADCCLRINT);
}