diff --git a/drivers/net/tun.c b/drivers/net/tun.c index cd06cae760356fc200f1c46a6f9c0c42f52e6dca..1ac80756e5afa5caaa293ccb77629f90d221f78f 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -1401,7 +1401,7 @@ static struct sk_buff *tun_napi_alloc_frags(struct tun_file *tfile, int i; if (it->nr_segs > MAX_SKB_FRAGS + 1) - return ERR_PTR(-ENOMEM); + return ERR_PTR(-EMSGSIZE); local_bh_disable(); skb = napi_get_frags(&tfile->napi);