mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 12:05:06 +07:00
cb6ec182c1
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> |
||
---|---|---|
.. | ||
connector-analog-tv.c | ||
connector-dvi.c | ||
connector-hdmi.c | ||
encoder-tfp410.c | ||
encoder-tpd12s015.c | ||
Kconfig | ||
Makefile | ||
panel-dpi.c | ||
panel-dsi-cm.c | ||
panel-lgphilips-lb035q02.c | ||
panel-nec-nl8048hl11.c | ||
panel-sharp-ls037v7dw01.c | ||
panel-sony-acx565akm.c | ||
panel-tpo-td028ttec1.c | ||
panel-tpo-td043mtea1.c |