]> git.baikalelectronics.ru Git - kernel.git/commit
serial/core: Fix too big allocation for attribute member
authorYoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Wed, 23 Jul 2014 06:06:22 +0000 (06:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 01:56:17 +0000 (18:56 -0700)
commitccdd17f651b957c9e3455438ae6094dc0b041434
tree79a1d26e0edd12c1d2d4ff61d35d76c3c8c2b179
parentd686f0a5018af9fe19c689396fa1b9867d8ae97b
serial/core: Fix too big allocation for attribute member

Current code allocates too much data for tty_groups member of uart_port struct,
so fix it.

Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c