linux_dsm_epyc7002/drivers/video/fbdev/omap2/displays-new
Himangi Saraogi cb6ec182c1 drivers/video/fbdev : dereference without an error test
After a variable is assigned the result of backlight_device_register, an
error test should be performed before a dereference.

A simplified version of the semantic match that finds this problem is
as follows:

// <smpl>
@def0@
expression x;
position p0;
@@

x@p0 = backlight_device_register(...)

@protected@
expression def0.x,E;
position def0.p0;
position p;
statement S;
@@
x@p0
... when != x = E
if (!IS_ERR(x) && ...) {<... x@p ...>} else S

@unprotected@
expression def0.x,E;
identifier fld;
position def0.p0;
position p != protected.p;
@@
x@p0
... when != x = E
* x@p->fld
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-06-26 13:48:00 +03:00
..
connector-analog-tv.c
connector-dvi.c
connector-hdmi.c OMAPDSS: connector-hdmi: hpd support 2014-05-07 11:29:38 +03:00
encoder-tfp410.c
encoder-tpd12s015.c
Kconfig
Makefile
panel-dpi.c OMAPDSS: panel-dpi: enable-gpio 2014-05-19 16:26:58 +03:00
panel-dsi-cm.c
panel-lgphilips-lb035q02.c OMAPDSS: panel-lgphilips-lb035q02: Add DT support 2014-05-20 14:39:39 +03:00
panel-nec-nl8048hl11.c OMAPDSS: panel NEC-NL8048HL11 DT support 2014-05-20 14:39:47 +03:00
panel-sharp-ls037v7dw01.c OMAPDSS: panel sharp-ls037v7dw01 DT support 2014-05-20 14:39:45 +03:00
panel-sony-acx565akm.c drivers/video/fbdev : dereference without an error test 2014-06-26 13:48:00 +03:00
panel-tpo-td028ttec1.c omapdss: panel-tpo-td028ec1: Add module alias 2014-05-09 12:35:51 +03:00
panel-tpo-td043mtea1.c OMAPDSS: Panel TPO-TD043MTEA1 DT support 2014-05-20 14:39:46 +03:00