]> git.baikalelectronics.ru Git - kernel.git/commit
target/iblock: Use match_strlcpy for Opt_udev_path string assignment
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 23 Aug 2012 01:45:11 +0000 (18:45 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 18 Sep 2012 00:13:32 +0000 (17:13 -0700)
commitcb76504ff103ff6d5a28c306080abf7460719efa
treee5251d6b288ae720af4a374198afa37da5233c95
parentd1731c310dfcbfb0350d77c1c4fde703b1263485
target/iblock: Use match_strlcpy for Opt_udev_path string assignment

Following commit 9e66008b8 from Al Viro for fileio, go ahead and make
Opt_udev_path within iblock_set_configfs_dev_params use match_strlcpy
instead of the match_strdup -> snprintf -> kfree equivalent.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c