]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/qdio: sanitize put_indicator
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 26 Oct 2017 14:47:25 +0000 (16:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 3 Nov 2017 07:00:33 +0000 (08:00 +0100)
commit30e8eb867122183076b7994f9b83920f9ec5451b
treeba3df25bb0a248d9ea9342f6e32737cb2ff61564
parent648a6f4495b183d4e0d8983ff768facb9a2185bb
s390/qdio: sanitize put_indicator

qdio maintains an array of struct indicator_t. put_indicator takes a pointer
to a member of a struct indicator_t within that array, calculates the index,
and uses the array and the index to get the struct indicator_t.

Simply use the pointer directly.

Although the pointer happens to point to the first member of that struct
use the container_of macro.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_thinint.c