aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorToshi Kani <[email protected]>2016-02-20 22:32:24 +0000
committerDan Williams <[email protected]>2016-02-24 01:17:20 +0000
commit93f834df9c2d4e362dfdc4b05daa0a4e18814836 (patch)
tree3f17712ac8c9e41baa072484c73032c2596ba228 /net/switchdev/switchdev.c
parentnfit: update address range scrub commands to the acpi 6.1 format (diff)
downloadkernel-93f834df9c2d4e362dfdc4b05daa0a4e18814836.tar.gz
kernel-93f834df9c2d4e362dfdc4b05daa0a4e18814836.zip
devm_memremap: Fix error value when memremap failed
devm_memremap() returns an ERR_PTR() value in case of error. However, it returns NULL when memremap() failed. This causes the caller, such as the pmem driver, to proceed and oops later. Change devm_memremap() to return ERR_PTR(-ENXIO) when memremap() failed. Signed-off-by: Toshi Kani <[email protected]> Cc: Andrew Morton <[email protected]> Cc: <[email protected]> Reviewed-by: Ross Zwisler <[email protected]> Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions