loopback: off by one in tcm_loop_make_naa_tpg()
authorDan Carpenter <error27@gmail.com>
Sat, 2 Apr 2011 21:32:47 +0000 (14:32 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:46 +0000 (09:37 +0000)
commit12f09ccb4612734a53e47ed5302e0479c10a50f8
tree6bbd52b7ac29fd768ccc12eca076a188a0eb07cf
parent21bca31c9678edda8eb1dc823be00d190965c53b
loopback: off by one in tcm_loop_make_naa_tpg()

This is an off by one 'tgpt' check in tcm_loop_make_naa_tpg() that could result
in memory corruption.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c