diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-27 21:37:03 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-27 22:28:38 +0200 |
commit | 7bbb654e9c77a8692425dbd2c704ad245b86ec8a (patch) | |
tree | 86c251ae2311c899de00f1c5054aff1e6a167e32 /lib/crc7.c | |
parent | iscsi-target: Fix uninitialized usage of cmd->pad_bytes (diff) | |
download | linux-7bbb654e9c77a8692425dbd2c704ad245b86ec8a.tar.xz linux-7bbb654e9c77a8692425dbd2c704ad245b86ec8a.zip |
iscsi-target: Fix snprintf usage with MAX_PORTAL_LEN
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>
Diffstat (limited to 'lib/crc7.c')
0 files changed, 0 insertions, 0 deletions