Merge branch 'iov_iter' into for-next
[firefly-linux-kernel-4.4.55.git] / net / netfilter / nfnetlink_queue_core.c
index f823f1538c4f98f44621dc2fa5af5b94a5bca236..0db8515e76da1f0a293a42078019fccc3bb9a295 100644 (file)
@@ -665,7 +665,7 @@ nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
         * returned by nf_queue.  For instance, callers rely on -ECANCELED to
         * mean 'ignore this hook'.
         */
-       if (IS_ERR(segs))
+       if (IS_ERR_OR_NULL(segs))
                goto out_err;
        queued = 0;
        err = 0;