diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-22 20:24:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-25 01:47:59 -0400 |
commit | 5ffedc6ed3d066f5c0d2c2106f9081170b3d24fa (patch) | |
tree | f1d788d82b8326c1feb5aff0a839592e8fb85551 /drivers/net/tun.c | |
parent | d9152097acc5f9fdc0bf1a8e3454634dfae47742 (diff) | |
download | blackbird-op-linux-5ffedc6ed3d066f5c0d2c2106f9081170b3d24fa.tar.gz blackbird-op-linux-5ffedc6ed3d066f5c0d2c2106f9081170b3d24fa.zip |
NFC: llcp: two bugs in ->getname()
The sockaddr_nfc_llcp struct has as hole between ->sa_family and
->dev_idx so I've added a memset() to clear it and prevent an
information leak.
Also the ->nfc_protocol element wasn't set so I've added that.
"uaddr->sa_family" and "llcp_addr->sa_family" are the same thing but
it's less confusing to use llcp_addr consistently throughout.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions