projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc6953
)
[S390] qdio: prevent handling of buffers if count is zero
author
Jan Glauber
<
[email protected]
>
Wed, 23 Mar 2011 09:16:01 +0000
(10:16 +0100)
committer
Martin Schwidefsky
<
[email protected]
>
Wed, 23 Mar 2011 09:15:59 +0000
(10:15 +0100)
Exit do_QDIO early if the buffer count is zero to prevent side effects
in the following functions.
Signed-off-by: Jan Glauber <
[email protected]
>
Signed-off-by: Martin Schwidefsky <
[email protected]
>
drivers/s390/cio/qdio_main.c
patch
|
blob
|
history
diff --git
a/drivers/s390/cio/qdio_main.c
b/drivers/s390/cio/qdio_main.c
index 5640c89cd9de3bae5f6f283f08eda97d7b3c3960..479c665e9e7c25f91996eeb287770384009c9b7a 100644
(file)
--- a/
drivers/s390/cio/qdio_main.c
+++ b/
drivers/s390/cio/qdio_main.c
@@
-1508,7
+1508,8
@@
int do_QDIO(struct ccw_device *cdev, unsigned int callflags,
if (irq_ptr->state != QDIO_IRQ_STATE_ACTIVE)
return -EBUSY;
-
+ if (!count)
+ return 0;
if (callflags & QDIO_FLAG_SYNC_INPUT)
return handle_inbound(irq_ptr->input_qs[q_nr],
callflags, bufnr, count);