Merge tag '9p-for-5.10-rc1' of git://github.com/martinetd/linux
[sfrench/cifs-2.6.git] / net / 9p / trans_fd.c
index c0762a302162c9d2127143bf131c49d553706846..8f528e783a6c533f604371228b7e31c28ea87577 100644 (file)
@@ -1023,7 +1023,7 @@ p9_fd_create_unix(struct p9_client *client, const char *addr, char *args)
 
        csocket = NULL;
 
-       if (addr == NULL)
+       if (!addr || !strlen(addr))
                return -EINVAL;
 
        if (strlen(addr) >= UNIX_PATH_MAX) {