git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f1928
)
iscsi-target: Fix snprintf usage with MAX_PORTAL_LEN
author
Nicholas Bellinger
<nab@linux-iscsi.org>
Wed, 27 Jul 2011 19:37:03 +0000
(12:37 -0700)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Wed, 27 Jul 2011 20:28:38 +0000
(20:28 +0000)
This patch makes lio_target_call_addnptotpg() use sprintf() with
MAX_PORTAL_LEN + 1 to address the following smatch warning:
drivers/target/iscsi/iscsi_target_configfs.c +184 lio_target_call_addnptotpg(21)
error: snprintf() chops off the last chars of 'name': 257 vs 256
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
No differences found