Vladimir Zapolskiy d449d69d21 misc: sram: fix check of devm_ioremap*() return value
Both devm_ioremap() and devm_ioremap_wc() functions return either
a pointer to valid iomem region or NULL, check for IS_ERR() is improper
and may result in oops on error path. Now on error -ENOMEM is returned.

Fixes: 0ab163ad1ea0 ("misc: sram: switch to ioremap_wc from ioremap")
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-30 14:15:56 -07:00
..
2016-02-07 23:01:45 -08:00
2016-03-19 15:38:41 -07:00
2014-02-28 14:08:42 -08:00
2016-02-08 14:57:30 -08:00
2015-03-16 21:10:28 +01:00
2013-08-27 08:28:01 -07:00
2016-02-22 14:46:24 -08:00
2016-02-11 19:24:23 -08:00