kernel-fxtec-pro1x/drivers/xen/xenbus
Dongli Zhang c4e8290c6f xenbus: req->err should be updated before req->state
[ Upstream commit 8130b9d5b5abf26f9927b487c15319a187775f34 ]

This patch adds the barrier to guarantee that req->err is always updated
before req->state.

Otherwise, read_reply() would not return ERR_PTR(req->err) but
req->body, when process_writes()->xb_write() is failed.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Link: https://lore.kernel.org/r/20200303221423.21962-2-dongli.zhang@oracle.com
Reviewed-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-25 08:06:08 +01:00
..
Makefile
xenbus.h
xenbus_client.c
xenbus_comms.c xenbus: req->err should be updated before req->state 2020-03-25 08:06:08 +01:00
xenbus_dev_backend.c
xenbus_dev_frontend.c
xenbus_probe.c
xenbus_probe_backend.c
xenbus_probe_frontend.c
xenbus_xs.c xenbus: req->body should be updated before req->state 2020-03-25 08:06:08 +01:00