projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6de92
)
[PATCH] PCI Hotplug: Fix buffer overrun in rpadlpar_sysfs.c
author
Linda Xie
<lxiep@us.ibm.com>
Thu, 22 Sep 2005 07:48:24 +0000
(
00:48
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 22 Sep 2005 14:58:25 +0000
(07:58 -0700)
Signed-off-by: Linda Xie <lxie@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pci/hotplug/rpadlpar_sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/hotplug/rpadlpar_sysfs.c
b/drivers/pci/hotplug/rpadlpar_sysfs.c
index 752e6513c447dce6ab3f5882a075e0f66eaf9dca..db69be85b4583100907368d580d03c35779a7576 100644
(file)
--- a/
drivers/pci/hotplug/rpadlpar_sysfs.c
+++ b/
drivers/pci/hotplug/rpadlpar_sysfs.c
@@
-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);
@@
-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);