wanxl: fix info leak in ioctl
authorSalva Peiró <speiro@ai2.upv.es>
Wed, 16 Oct 2013 10:46:50 +0000 (12:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:37 +0000 (07:53 +0200)
commit5b5c1947f692f8b6a8568a27a270cbb9413233ac
tree0ae88467e6a2beea90b83091ab35ba2479e78646
parent618664aefb3819cf77720b17b894df55e4ca4d93
wanxl: fix info leak in ioctl

[ Upstream commit 2b13d06c9584b4eb773f1e80bbaedab9a1c344e1 ]

The wanxl_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ó <speiro@ai2.upv.es>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/wan/wanxl.c