[PATCH] synclink: fix info leak in ioctl

2014-03-11 Thread Salva Peiró
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

[PATCH] synclink: fix info leak in ioctl

2013-10-16 Thread Salva Peiró
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