]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/x25/x25_in.c
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / net / x25 / x25_in.c
index 7d7c3abf38b573fa64f1bb35026dc5bf80cdcd3c..96d9227835479474e6cedaeef6704f619c1683e8 100644 (file)
@@ -114,7 +114,7 @@ static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametyp
                        /*
                         *      Copy any Call User Data.
                         */
-                       if (skb->len >= 0) {
+                       if (skb->len > 0) {
                                skb_copy_from_linear_data(skb,
                                              x25->calluserdata.cuddata,
                                              skb->len);