]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up some build warnings
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 14:20:40 +0000 (15:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2018 14:20:40 +0000 (15:20 +0100)
queue-3.18/fs-fcntl-f_setown-avoid-undefined-behaviour.patch
queue-4.9/fs-fcntl-f_setown-avoid-undefined-behaviour.patch

index ed47250071ddc25935f5707585585e189794f1c5..a1be9f781630db55a1f4fa7eb28f11b65de9714e 100644 (file)
@@ -50,7 +50,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (who < 0) {
 +              /* avoid overflow below */
 +              if (who == INT_MIN)
-+                      return -EINVAL;
++                      return;
 +
                type = PIDTYPE_PGID;
                who = -who;
index 2bd118b597bb5072df01a2b27c8063786b2cb170..cae409deca0324e54d4cee793c8c05cdc55edd55 100644 (file)
@@ -50,7 +50,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (who < 0) {
 +              /* avoid overflow below */
 +              if (who == INT_MIN)
-+                      return -EINVAL;
++                      return;
 +
                type = PIDTYPE_PGID;
                who = -who;