]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up build warning in queue-3.18/of-fdt-add-missing-allocation-failure-check.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2017 15:06:50 +0000 (17:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2017 15:06:50 +0000 (17:06 +0200)
queue-3.18/of-fdt-add-missing-allocation-failure-check.patch

index 3773082e919f6d2331ee47f7e058033ac32ffb7b..370f7a0ae19cff6b23e3a885addbb5af797822f0 100644 (file)
@@ -27,7 +27,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        /* Allocate memory for the expanded device tree */
        mem = dt_alloc(size + 4, __alignof__(struct device_node));
 +      if (!mem)
-+              return NULL;
++              return;
 +
        memset(mem, 0, size);