Files
linux/drivers
Ville Syrjälä bb7acf59a1 drm/i915: Use drm_mode_init() for on-stack modes
Initialize on-stack modes with drm_mode_init() to guarantee
no stack garbage in the list head, or that we aren't copying
over another mode's list head.

Based on the following cocci script, with manual fixups:
@decl@
identifier M;
expression E;
@@
- struct drm_display_mode M = E;
+ struct drm_display_mode M;

@@
identifier decl.M;
expression decl.E;
statement S, S1;
@@
struct drm_display_mode M;
... when != S
+ drm_mode_init(&M, &E);
+
S1

@@
expression decl.E;
@@
- &*E
+ E

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220218100403.7028-19-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
2022-05-05 18:23:55 +03:00
..
2022-04-08 19:50:44 +02:00
2022-04-06 13:07:53 -06:00
2022-04-06 08:47:52 -06:00
2022-03-30 16:17:54 -07:00
2022-04-08 12:59:43 -07:00
2022-04-04 17:03:04 +02:00
2022-04-21 07:36:56 -04:00
2022-03-18 19:00:26 +01:00