Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] iscsi: fix setting of pid from netlink skb

NETLINK_CREDS's pid now returns 0, so I guess we are supposed to
be using NETLINK_CB. This changed while the patch to export the
pid was getting merged upstream, so it was not noticed until both
the network and iscsi changes were in the same tree.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

authored by

Mike Christie and committed by
James Bottomley
df1c7bab 46a7c17d

+2 -2
+2 -2
drivers/scsi/scsi_transport_iscsi.c
··· 1941 1941 switch (nlh->nlmsg_type) { 1942 1942 case ISCSI_UEVENT_CREATE_SESSION: 1943 1943 err = iscsi_if_create_session(priv, ep, ev, 1944 - NETLINK_CREDS(skb)->pid, 1944 + NETLINK_CB(skb).pid, 1945 1945 ev->u.c_session.initial_cmdsn, 1946 1946 ev->u.c_session.cmds_max, 1947 1947 ev->u.c_session.queue_depth); ··· 1954 1954 } 1955 1955 1956 1956 err = iscsi_if_create_session(priv, ep, ev, 1957 - NETLINK_CREDS(skb)->pid, 1957 + NETLINK_CB(skb).pid, 1958 1958 ev->u.c_bound_session.initial_cmdsn, 1959 1959 ev->u.c_bound_session.cmds_max, 1960 1960 ev->u.c_bound_session.queue_depth);