Skip to content

Commit

Permalink
[S390] cio: dont forget to set last slot to NULL in ccw_uevent().
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Aug 22, 2007
1 parent cb00e99 commit 3520c92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ static int ccw_uevent(struct device *dev, char **envp, int num_envp,
snprint_alias(modalias_buf, sizeof(modalias_buf), id, "");
ret = add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &len,
"MODALIAS=%s", modalias_buf);
return ret;
if (ret)
return ret;
envp[i] = NULL;
return 0;
}

struct bus_type ccw_bus_type;
Expand Down

0 comments on commit 3520c92

Please sign in to comment.