[NETLINK]: Introduce nlmsg_hdr() helper
[pandora-kernel.git] / drivers / scsi / scsi_transport_iscsi.c
index ce0d14a..10590cd 100644 (file)
@@ -1081,7 +1081,7 @@ iscsi_if_rx(struct sock *sk, int len)
                        struct nlmsghdr *nlh;
                        struct iscsi_uevent *ev;
 
-                       nlh = (struct nlmsghdr *)skb->data;
+                       nlh = nlmsg_hdr(skb);
                        if (nlh->nlmsg_len < sizeof(*nlh) ||
                            skb->len < nlh->nlmsg_len) {
                                break;