]> err.no Git - linux-2.6/commitdiff
[PATCH] s390: chps[] array too short
authorCornelia Huck <cornelia.huck@de.ibm.com>
Sat, 14 Jan 2006 21:21:03 +0000 (13:21 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Jan 2006 02:27:09 +0000 (18:27 -0800)
The chps[] array in struct channel_subsystem is one too short; therefore the
code doesn't realize the chpid ff is already known.  When several devices on
chpid ff become available, the message "new_channel_path: could not register
ff" is displayed for every device but the first one.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/s390/cio/css.h

index aa5ab5d4547c29a4460f9c205851c20f38250108..b6375861cb3766188d85240e823828abca0e526c 100644 (file)
@@ -147,7 +147,7 @@ extern int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *);
 struct channel_subsystem {
        u8 cssid;
        int valid;
-       struct channel_path *chps[__MAX_CHPID];
+       struct channel_path *chps[__MAX_CHPID + 1];
        struct device device;
        struct pgid global_pgid;
 };