projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6884bb0
)
staging: vme: correct array overflow
author
Martyn Welch
<martyn.welch@gefanuc.com>
Thu, 29 Oct 2009 16:34:48 +0000
(16:34 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Dec 2009 20:23:17 +0000
(12:23 -0800)
Eric Sesterhenn noticed that vme_user is overflowing an array used by
sprintf. Use a bigger array.
CC: Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/devices/vme_user.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vme/devices/vme_user.c
b/drivers/staging/vme/devices/vme_user.c
index dc9be4778fe5774fddd70a9685b389e5cfd57c20..e228942ee081deec0e705c67605d015b301e8a4e 100644
(file)
--- a/
drivers/staging/vme/devices/vme_user.c
+++ b/
drivers/staging/vme/devices/vme_user.c
@@
-624,7
+624,7
@@
err_nocard:
static int __init vme_user_probe(struct device *dev, int cur_bus, int cur_slot)
{
int i, err;
- char name[
8
];
+ char name[
12
];
/* Save pointer to the bridge device */
if (vme_user_bridge != NULL) {