]> git.baikalelectronics.ru Git - kernel.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)
commit5dfb4f0d243b659de20cc98a98e7df628f698818
treeba3df25bb0a248d9ea9342f6e32737cb2ff61564
parent1aa2146702b258525ef6860d909b850065cb7738
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