Julia Lawall 3a61b527b4 drm/radeon: adjust tested variable
Check the variable that was most recently initialized.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x, y, f, g, e, m;
statement S1,S2,S3,S4;
@@

x = f(...);
if (\(<+...x...+>\&e\)) S1 else S2
(
x = g(...);
|
m = g(...,&x,...);
|
y = g(...);
*if (e)
 S3 else S4
)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2018-01-29 23:18:17 -05:00
..
2015-10-21 11:35:11 -04:00
2016-03-16 18:08:06 -04:00
2015-12-02 12:45:54 -05:00
2017-11-15 20:42:10 -08:00
2015-10-21 11:35:11 -04:00
2015-11-30 14:44:34 -05:00
2017-08-15 14:46:16 -04:00
2015-12-02 12:45:54 -05:00
2017-05-08 17:15:14 -07:00
2016-03-16 18:08:06 -04:00
2017-05-18 17:22:39 +02:00
2017-11-15 20:42:10 -08:00
2016-03-16 18:08:06 -04:00
2017-06-27 08:28:30 +10:00