qlcnic: info leak in qlcnic_dcb_peer_app_info()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 May 2014 16:37:21 +0000 (19:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 May 2014 18:01:17 +0000 (14:01 -0400)
commit7df566bbdd0af0785542b89466a937e94257fcfb
tree2091abb3d1ca11720f89973f445fa77aeba722c2
parent1d61367f522726e789aec68f7da1803c365fa4d3
qlcnic: info leak in qlcnic_dcb_peer_app_info()

This function is called from dcbnl_build_peer_app().  The "info"
struct isn't initialized at all so we disclose 2 bytes of uninitialized
stack data.  We should clear it before passing it to the user.

Fixes: 48365e485275 ('qlcnic: dcb: Add support for CEE Netlink interface.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c