aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorMartyn Welch <martyn.welch@gefanuc.com>2009-10-29 16:34:48 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 12:23:17 -0800
commitbeb9ccc635433065a099b75dc8b22caf0844014a (patch)
treee95b2c15c0508fe8a26919583974f5a8def4b337 /drivers/staging
parent6884bb09244498bfa67a99737f33b638d8eae450 (diff)
staging: vme: correct array overflow
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/vme/devices/vme_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
index dc9be4778fe..e228942ee08 100644
--- 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) {