LABBE Corentin 32e80820de dmaengine: img-mdc: fix a possible NULL dereference
of_match_device could return NULL, and so cause a NULL pointer
dereference later at line 850:
mdma->soc = match->data;

For fixing this problem, we use of_device_get_match_data(), this will
simplify the code a little by using a standard function for
getting the match data.

This was reported by coverity (CID 1324134)

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2016-08-22 11:57:49 +05:30
..
2016-07-23 16:07:29 +05:30
2013-01-07 17:36:37 +01:00
2016-03-24 23:13:48 -07:00
2016-07-12 10:09:53 +05:30
2016-07-28 15:45:17 -07:00
2016-05-27 15:26:11 -07:00
2015-11-10 10:05:17 -08:00