提交 beb9ccc6 编写于 作者: M Martyn Welch 提交者: Greg Kroah-Hartman

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: NMartyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 6884bb09
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册