The hdlcdev_ioctl() code fails to initialize the two padding bytes of
struct sync_serial_settings after the ->loopback member. Add an explicit
memset(0) before filling the structure to avoid the info leak.
Signed-off-by: Salva Peiró
---
drivers/tty/synclink.c |1 +
drivers/tty/synclinkmp.c
The hdlcdev_ioctl() code fails to initialize the two padding bytes of
struct sync_serial_settings after the ->loopback member. Add an explicit
memset(0) before filling the structure to avoid the info leak.
Signed-off-by: Salva Peiró
---
drivers/tty/synclink.c |1 +
drivers/tty/synclinkmp.c
2 matches
Mail list logo