Thread (3 messages) flat view 3 messages, 2 authors, 2016-02-09

Re: [PATCH net] enic: increment devcmd2 result ring in case of timeout

From: David Miller <davem@davemloft.net>
Date: 2016-02-09 09:49:08

From: Govindarajulu Varadarajan <redacted>
Date: Wed,  3 Feb 2016 14:40:44 +0530
From: Sandeep Pillai <redacted>

Firmware posts the devcmd result in result ring. In case of timeout, driver
does not increment the current result pointer and firmware could post the
result after timeout has occurred. During next devcmd, driver would be
reading the result of previous devcmd.

Fix this by incrementing result even in case of timeout.

Fixes: 373fb0873d43 ("enic: add devcmd2")
Signed-off-by: Sandeep Pillai <redacted>
Signed-off-by: Govindarajulu Varadarajan <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help