backports: replace new portid usage
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Sep 2013 13:58:46 +0000 (15:58 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Oct 2013 21:58:37 +0000 (23:58 +0200)
In this upstream commit a new usage of portid was introduced:
commit ac22ac466a659f1b2e02a2e2ee23fc5c42da2c95
Author: Samuel Ortiz <sameo@linux.intel.com>
Date:   Wed Jul 24 18:10:50 2013 +0200

    NFC: Add a GET_SE netlink API

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/nfc/01-netlink-portid/net_nfc_netlink.patch

index 16cbf8ec6ec23cb04d6735adc3077ce4989ddd9f..f73352c1a194ed4dad9116c7164103db15dee959 100644 (file)
  
  exit:
        device_unlock(&dev->dev);
-@@ -1315,12 +1315,12 @@ static int nfc_genl_rcv_nl_event(struct
+@@ -1253,7 +1253,7 @@ static int nfc_genl_dump_ses(struct sk_b
+       while (dev) {
+               int rc;
+-              rc = nfc_genl_send_se(skb, dev, NETLINK_CB(cb->skb).portid,
++              rc = nfc_genl_send_se(skb, dev, NETLINK_CB_PORTID(cb->skb),
+                                         cb->nlh->nlmsg_seq, cb, NLM_F_MULTI);
+               if (rc < 0)
+                       break;
+@@ -1408,12 +1408,12 @@ static int nfc_genl_rcv_nl_event(struct
        if (event != NETLINK_URELEASE || n->protocol != NETLINK_GENERIC)
                goto out;