Skip to content

Commit c4cb901

Browse files
alexaringholtmann
authored andcommitted
ieee802154: 6lowpan_rtnl: fix correct errno value
This patch correct the return value of lowpan_alloc_frag if an error occur. Errno numbers should always be negative. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 7629d1e commit c4cb901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ieee802154/6lowpan_rtnl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
246246
return ERR_PTR(-rc);
247247
}
248248
} else {
249-
frag = ERR_PTR(ENOMEM);
249+
frag = ERR_PTR(-ENOMEM);
250250
}
251251

252252
return frag;

0 commit comments

Comments
 (0)