Skip to content

Commit

Permalink
staging: vme: correct array overflow
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martyn Welch authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 6884bb0 commit beb9ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vme/devices/vme_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static int __init vme_user_init(void)
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) {
Expand Down

0 comments on commit beb9ccc

Please sign in to comment.