diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-21 16:13:04 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2016-01-04 08:58:33 +0100 |
commit | 074726402b82f14ca377da0b4a4767674c3d1ff8 (patch) | |
tree | b2103335d0df257b371fe9465f56eb8aed3f205f | |
parent | 36d5be4bc9059f8123e818c8b63a4049cf1d0e0f (diff) | |
download | op-kernel-dev-074726402b82f14ca377da0b4a4767674c3d1ff8.zip op-kernel-dev-074726402b82f14ca377da0b4a4767674c3d1ff8.tar.gz |
pwm: omap-dmtimer: Potential NULL dereference on error
"omap" is NULL so we can't dereference it.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-omap-dmtimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c index c453b33..826634e 100644 --- a/drivers/pwm/pwm-omap-dmtimer.c +++ b/drivers/pwm/pwm-omap-dmtimer.c @@ -243,7 +243,7 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev) omap = devm_kzalloc(&pdev->dev, sizeof(*omap), GFP_KERNEL); if (!omap) { - omap->pdata->free(dm_timer); + pdata->free(dm_timer); return -ENOMEM; } |