Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9197
b: refs/heads/master
c: 02fe75a
h: refs/heads/master
i:
  9195: 60a25fb
v: v3
  • Loading branch information
Linda Xie authored and Linus Torvalds committed Sep 22, 2005
1 parent efe4f91 commit 82dadc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 3c6de9295d28a4fc868b2c09f23e318e3e7b9b6b
refs/heads/master: 02fe75a9ad797b4f8ccf1ee8e49833b77cc30c6a
4 changes: 2 additions & 2 deletions trunk/drivers/pci/hotplug/rpadlpar_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static ssize_t add_slot_store(struct dlpar_io_attr *dlpar_attr,
char drc_name[MAX_DRC_NAME_LEN];
char *end;

if (nbytes > MAX_DRC_NAME_LEN)
if (nbytes >= MAX_DRC_NAME_LEN)
return 0;

memcpy(drc_name, buf, nbytes);
Expand All @@ -83,7 +83,7 @@ static ssize_t remove_slot_store(struct dlpar_io_attr *dlpar_attr,
char drc_name[MAX_DRC_NAME_LEN];
char *end;

if (nbytes > MAX_DRC_NAME_LEN)
if (nbytes >= MAX_DRC_NAME_LEN)
return 0;

memcpy(drc_name, buf, nbytes);
Expand Down

0 comments on commit 82dadc6

Please sign in to comment.