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 /drivers/pwm | |
parent | 36d5be4bc9059f8123e818c8b63a4049cf1d0e0f (diff) | |
download | linux-074726402b82f14ca377da0b4a4767674c3d1ff8.tar.bz2 |
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>
Diffstat (limited to 'drivers/pwm')
-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 c453b3360605..826634ec0d5c 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; } |