summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2007-08-22 13:51:36 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-08-22 13:51:46 +0200
commit3520c92283bb7ddd59daf90cfc1eb107dc9ab76c (patch)
treeadbbb0b692b0b72238f5aced37a51e4a06d69d0d /drivers/s390
parentcb00e99c0abd844b884c64c6b54aa3b7d345ebb1 (diff)
downloadop-kernel-dev-3520c92283bb7ddd59daf90cfc1eb107dc9ab76c.zip
op-kernel-dev-3520c92283bb7ddd59daf90cfc1eb107dc9ab76c.tar.gz
[S390] cio: dont forget to set last slot to NULL in ccw_uevent().
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 297659f..e44d92e 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -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;
OpenPOWER on IntegriCloud