From: Dan Carpenter Date: Mon, 22 Apr 2013 20:24:52 +0000 (+0000) Subject: NFC: llcp: two bugs in ->getname() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~77^2~15^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ffedc6ed3d066f5c0d2c2106f9081170b3d24fa;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed