target: correctly handle match_int errors in FILEIO + PSCSI
authorJoern Engel <joern@logfs.org>
Tue, 2 Sep 2014 21:50:00 +0000 (17:50 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 17 Sep 2014 22:20:57 +0000 (15:20 -0700)
commitce31c1b0dc4038a1dec64585d892adb73d9c45f4
tree2c808d3d981f99f22fcafefddc716e79fc2faa5d
parent68edbce4fb4b173d3b9880967cfcce0fc3abc8d5
target: correctly handle match_int errors in FILEIO + PSCSI

This patch correctly handles match_int() errors in FILEIO + PSCSI
backend parameter parsing, which can potentially fail due to a
memory allocation failure or invalid argument.

Found by coverity.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c
drivers/target/target_core_pscsi.c