mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
staging: gdm724x: Use NLMSG_HDRLEN
Replace use of NLMSG_SPACE(0) with NLMSG_HDRLEN as they are equivalent and NLMSG_SPACE seems to be deprecated. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5813104211
commit
58419939bc
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ static void netlink_rcv_cb(struct sk_buff *skb)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skb->len < NLMSG_SPACE(0)) {
|
if (skb->len < NLMSG_HDRLEN) {
|
||||||
pr_err("nl cb - invalid skb length\n");
|
pr_err("nl cb - invalid skb length\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue