sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
[linux-2.6-block.git] / net / atm / common.c
index 6dc12305799e45180bc8091ee2a99f11e3400fa7..9613381f5db04e28ff66749706d1d61d82f77b88 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/errno.h>       /* error codes */
 #include <linux/capability.h>
 #include <linux/mm.h>
-#include <linux/sched.h>
+#include <linux/sched/signal.h>
 #include <linux/time.h>                /* struct timeval */
 #include <linux/skbuff.h>
 #include <linux/bitops.h>
@@ -630,7 +630,7 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)
                goto out;
        skb->dev = NULL; /* for paths shared with net_device interfaces */
        ATM_SKB(skb)->atm_options = vcc->atm_options;
-       if (copy_from_iter(skb_put(skb, size), size, &m->msg_iter) != size) {
+       if (!copy_from_iter_full(skb_put(skb, size), size, &m->msg_iter)) {
                kfree_skb(skb);
                error = -EFAULT;
                goto out;