]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 11 Apr 2016 16:56:16 +0000 (11:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 01:00:45 +0000 (18:00 -0700)
commit8437bba4452e578a00444699444ef39d1fb64ffd
tree6b12e023c584a74e7f7220b7fcf07d16e468b0b5
parenta8b222458bcbe06ab56089e869d996ebb6c1248d
staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures

There are some error paths that allow for a NULL new_mc_io and err = 0
return code. Return -EINVAL instead.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Acked-by: German Rivera <german.rivera@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-allocator.c