projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rk31 lcdc: fix compile err
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
video
/
bfin-lq035q1-fb.c
diff --git
a/drivers/video/bfin-lq035q1-fb.c
b/drivers/video/bfin-lq035q1-fb.c
index c8e1f04941bd5333e467fa358f06691067ad0e3a..23b6c4b62c78cdd642083b7b36245dca2d13d5e6 100644
(file)
--- a/
drivers/video/bfin-lq035q1-fb.c
+++ b/
drivers/video/bfin-lq035q1-fb.c
@@
-154,8
+154,10
@@
static int __devinit lq035q1_spidev_probe(struct spi_device *spi)
ret = lq035q1_control(spi, LQ035_SHUT_CTL, LQ035_ON);
ret |= lq035q1_control(spi, LQ035_DRIVER_OUTPUT_CTL, ctl->mode);
- if (ret)
+ if (ret) {
+ kfree(ctl);
return ret;
+ }
spi_set_drvdata(spi, ctl);