]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite556a9101b314e9e2653ee2d67e6d526c6c81189
tree2c808d3d981f99f22fcafefddc716e79fc2faa5d
parent156f640f6e3fbe1787b637c3bc74f334b81c95c3
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