From: Phoebe Buckheister Date: Fri, 14 Mar 2014 20:24:04 +0000 (+0100) Subject: ieee802154: add proper length checks to header creations X-Git-Tag: v3.15-rc1~113^2~151^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d7358e9f032a43bd48d56a623943b7bee7dce0;p=pandora-kernel.git ieee802154: add proper length checks to header creations Have mac802154 header_ops.create fail with -EMSGSIZE if the length passed will be too large to fit a frame. Since 6lowpan will ensure that no packet payload will be too large, pass a length of 0 there. 802.15.4 dgram sockets will also return -EMSGSIZE on payloads larger than the device MTU instead of -EINVAL. Signed-off-by: Phoebe Buckheister Signed-off-by: David S. Miller --- Reading git-diff-tree failed