mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
The devm_memremap() function returns error pointers on error,
it doesn't return NULL.
Fixes: 19d5402088 ("firmware: google: Implement cbmem in sysfs driver")
Signed-off-by: Peng Wu <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Jack Rosenthal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>