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>
This commit is contained in:
Martyn Welch 2009-10-29 16:34:48 +00:00 committed by Greg Kroah-Hartman
parent 6884bb0924
commit beb9ccc635

View file

@ -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) {