From: Martyn Welch Date: Thu, 29 Oct 2009 16:34:48 +0000 (+0000) Subject: staging: vme: correct array overflow X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=beb9ccc635433065a099b75dc8b22caf0844014a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c index dc9be4778fe5..e228942ee081 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) {