]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/md/dm-log-userspace-base.c
md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined!
[~shefty/rdma-dev.git] / drivers / md / dm-log-userspace-base.c
index 6e186b1a062d39bbf020788483c2d1bde85541a2..652bd33109e3333b97bd307514a24f7553241078 100644 (file)
@@ -582,7 +582,7 @@ static int userspace_status(struct dm_dirty_log *log, status_type_t status_type,
                break;
        case STATUSTYPE_TABLE:
                sz = 0;
                break;
        case STATUSTYPE_TABLE:
                sz = 0;
-               table_args = strstr(lc->usr_argv_str, " ");
+               table_args = strchr(lc->usr_argv_str, ' ');
                BUG_ON(!table_args); /* There will always be a ' ' */
                table_args++;
 
                BUG_ON(!table_args); /* There will always be a ' ' */
                table_args++;