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:
Родитель
6884bb0924
Коммит
beb9ccc635
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче