[PATCH 1/7] staging: vme: correct array overflow
Martyn Welch
martyn.welch at gefanuc.com
Thu Oct 29 09:34:48 PDT 2009
Eric Sesterhenn noticed that vme_user is overflowing an array used by
sprintf. Use a bigger array.
CC: Eric Sesterhenn <eric.sesterhenn at lsexperts.de>
Signed-off-by: Martyn Welch <martyn.welch at gefanuc.com>
---
drivers/staging/vme/devices/vme_user.c | 2 +-
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 dc9be47..e228942 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) {
--
Martyn Welch MEng MPhil MIET (Principal Software Engineer) T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd, |Registered in England and Wales
Tove Valley Business Park, Towcester, |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB VAT:GB 927559189
More information about the devel
mailing list