]> 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)
commitdd2f6980b98388e110267eefd393d782054a0dfc
tree2c808d3d981f99f22fcafefddc716e79fc2faa5d
parent7cb542873756e9a91ab5c4e3b9532d769c2b0f40
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