From: Antonio Quartulli Date: Wed, 29 Jan 2014 23:12:24 +0000 (+0100) Subject: batman-adv: properly check pskb_may_pull return value X-Git-Tag: v3.14-rc4~30^2~7^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1791425cf0bcda43ab9a9a37df1ad3ccb1f6654;p=pandora-kernel.git batman-adv: properly check pskb_may_pull return value pskb_may_pull() returns 1 on success and 0 in case of failure, therefore checking for the return value being negative does not make sense at all. This way if the function fails we will probably read beyond the current skb data buffer. Fix this by doing the proper check. Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed