From: Dan Carpenter Date: Tue, 3 Sep 2013 09:02:32 +0000 (+0300) Subject: caif: add a sanity check to the tty name X-Git-Tag: v3.12-rc1~132^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cab6ce9ebe89303bbf5eff442776188070a22771;p=pandora-kernel.git caif: add a sanity check to the tty name "tty->name" and "name" are a 64 character buffers. My static checker complains because we add the "cf" on the front so it look like we are copying a 66 character string into a 64 character buffer. Also if the name is larger than IFNAMSIZ (16) it triggers a BUG_ON() inside the call to alloc_netdev(). This is all under CAP_SYS_ADMIN so it's not a security fix, it just adds a little robustness. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed