You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
scsi: replace obsolete NLMSG_* with type safe nlmsg_*
Signed-off-by: Hong Zhiguo <honkiko@gmail.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b96dc46499
commit
e07ebea0cc
@@ -50,7 +50,7 @@ scsi_nl_rcv_msg(struct sk_buff *skb)
|
||||
u32 rlen;
|
||||
int err, tport;
|
||||
|
||||
while (skb->len >= NLMSG_SPACE(0)) {
|
||||
while (skb->len >= NLMSG_HDRLEN) {
|
||||
err = 0;
|
||||
|
||||
nlh = nlmsg_hdr(skb);
|
||||
@@ -70,7 +70,7 @@ scsi_nl_rcv_msg(struct sk_buff *skb)
|
||||
goto next_msg;
|
||||
}
|
||||
|
||||
hdr = NLMSG_DATA(nlh);
|
||||
hdr = nlmsg_data(nlh);
|
||||
if ((hdr->version != SCSI_NL_VERSION) ||
|
||||
(hdr->magic != SCSI_NL_MAGIC)) {
|
||||
err = -EPROTOTYPE;
|
||||
|
||||
Reference in New Issue
Block a user