Skip to contentSkip to conversation

s390: chps[] array too short.

PATCH In review Martin Schwidefsky 1 participant 1 message Jan 12, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/13 s390: chps[] array too short.

From: Cornelia Huck <[email protected]>

[patch 12/13] s390: chps[] array too short.

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.

---

 drivers/s390/cio/css.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/s390/cio/css.h +1 -1
diff -urpN linux-2.6/drivers/s390/cio/css.h linux-2.6-patched/drivers/s390/cio/css.h
@@ -143,7 +143,7 @@ extern int for_each_subchannel(int(*fn)(
 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;
 };