public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] s390: beyond ARRAY_SIZE of irq_ptr->{in,out}put_qs
       [not found] <4A134C97.1020409@gmail.com>
@ 2009-05-20  6:57 ` Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2009-05-20  6:57 UTC (permalink / raw)
  To: linux-s390

On Wed, 20 May 2009 02:19:35 +0200
Roel Kluin <roel.kluin@gmail.com> wrote:

> Do not go beyond ARRAY_SIZE of irq_ptr->{in,out}put_qs
> 
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
> index accd957..758e4b1 100644
> --- a/drivers/s390/cio/qdio_main.c
> +++ b/drivers/s390/cio/qdio_main.c
> @@ -1514,7 +1514,7 @@ int do_QDIO(struct ccw_device *cdev, unsigned int callflags,
> 
>  	if ((bufnr > QDIO_MAX_BUFFERS_PER_Q) ||
>  	    (count > QDIO_MAX_BUFFERS_PER_Q) ||
> -	    (q_nr > QDIO_MAX_QUEUES_PER_IRQ))
> +	    (q_nr >= QDIO_MAX_QUEUES_PER_IRQ))
>  		return -EINVAL;
> 
>  	if (!count)

Nice find. I'll queue the patch to the git390 tree.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-20  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4A134C97.1020409@gmail.com>
2009-05-20  6:57 ` [PATCH] s390: beyond ARRAY_SIZE of irq_ptr->{in,out}put_qs Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox