ib_srpt: replace strnicmp with strncasecmp
[firefly-linux-kernel-4.4.55.git] / drivers / infiniband / ulp / srpt / ib_srpt.c
index fe09f2788b15e7e42b1c076f67e17b3b2ca2f268..7206547c13ce0dc8dda59458658d843d64520327 100644 (file)
@@ -198,6 +198,7 @@ static void srpt_event_handler(struct ib_event_handler *handler,
        case IB_EVENT_PKEY_CHANGE:
        case IB_EVENT_SM_CHANGE:
        case IB_EVENT_CLIENT_REREGISTER:
+       case IB_EVENT_GID_CHANGE:
                /* Refresh port data asynchronously. */
                if (event->element.port_num <= sdev->device->phys_port_cnt) {
                        sport = &sdev->port[event->element.port_num - 1];
@@ -563,7 +564,7 @@ static int srpt_refresh_port(struct srpt_port *sport)
                                                         &reg_req, 0,
                                                         srpt_mad_send_handler,
                                                         srpt_mad_recv_handler,
-                                                        sport);
+                                                        sport, 0);
                if (IS_ERR(sport->mad_agent)) {
                        ret = PTR_ERR(sport->mad_agent);
                        sport->mad_agent = NULL;
@@ -3573,7 +3574,7 @@ static int srpt_parse_i_port_id(u8 i_port_id[16], const char *name)
        int ret, rc;
 
        p = name;
-       if (strnicmp(p, "0x", 2) == 0)
+       if (strncasecmp(p, "0x", 2) == 0)
                p += 2;
        ret = -EINVAL;
        len = strlen(p);