Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beb9ccc6 authored by Martyn Welch's avatar Martyn Welch Committed by Greg Kroah-Hartman
Browse files

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: default avatarMartyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6884bb09
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)
static int __init vme_user_probe(struct device *dev, int cur_bus, int cur_slot)
{
{
	int i, err;
	int i, err;
	char name[8];
	char name[12];


	/* Save pointer to the bridge device */
	/* Save pointer to the bridge device */
	if (vme_user_bridge != NULL) {
	if (vme_user_bridge != NULL) {