Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333023
b: refs/heads/master
c: 852b6ed
h: refs/heads/master
i:
  333021: 49b3392
  333019: b1b2577
  333015: 84b6efe
  333007: 38b54b8
  332991: 91692df
v: v3
  • Loading branch information
Nicholas Bellinger committed Sep 18, 2012
1 parent adf1aa1 commit b983b25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35d1efe80500a55f9aa01b305a6714ec78c33764
refs/heads/master: 852b6ed110990891d21bf76b4f46a3c854866f67
9 changes: 3 additions & 6 deletions trunk/drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,11 @@ static ssize_t iblock_set_configfs_dev_params(struct se_hba *hba,
ret = -EEXIST;
goto out;
}
arg_p = match_strdup(&args[0]);
if (!arg_p) {
ret = -ENOMEM;
if (match_strlcpy(ib_dev->ibd_udev_path, &args[0],
SE_UDEV_PATH_LEN) == 0) {
ret = -EINVAL;
break;
}
snprintf(ib_dev->ibd_udev_path, SE_UDEV_PATH_LEN,
"%s", arg_p);
kfree(arg_p);
pr_debug("IBLOCK: Referencing UDEV path: %s\n",
ib_dev->ibd_udev_path);
ib_dev->ibd_flags |= IBDF_HAS_UDEV_PATH;
Expand Down

0 comments on commit b983b25

Please sign in to comment.