From: Sebastian Ott Date: Thu, 26 Mar 2009 14:24:12 +0000 (+0100) Subject: [S390] cio: airq - fix array boundary X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a1f640734ab57d548a3fdadad6b869da534d4ecb;p=linux-2.6-omap-h63xx.git [S390] cio: airq - fix array boundary MAX_ISC is a valid isc number, so arrays with an index of isc need to have a length of MAX_ISC+1 Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/airq.c b/drivers/s390/cio/airq.c index d3850dc30e4..65d2e769dfa 100644 --- a/drivers/s390/cio/airq.c +++ b/drivers/s390/cio/airq.c @@ -34,8 +34,8 @@ struct airq_t { void *drv_data; }; -static union indicator_t indicators[MAX_ISC]; -static struct airq_t *airqs[MAX_ISC][NR_AIRQS]; +static union indicator_t indicators[MAX_ISC+1]; +static struct airq_t *airqs[MAX_ISC+1][NR_AIRQS]; static int register_airq(struct airq_t *airq, u8 isc) {