Pan Bian 7cf6156633 atm: fix improper return value
It returns variable "error" when ioremap_nocache() returns a NULL
pointer. The value of "error" is 0 then, which will mislead the callers
to believe that there is no error. This patch fixes the bug, returning
"-ENOMEM".

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=189021

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-05 14:53:46 -05:00
..
2016-12-05 14:53:46 -05:00
2011-03-31 11:26:23 -03:00
2015-01-18 00:28:41 -05:00
2016-07-01 05:58:26 -04:00
2015-06-10 22:46:34 -07:00
2011-03-31 11:26:23 -03:00
2013-02-08 14:22:05 -05:00
2015-12-29 15:32:24 -05:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00