diff options
author | SeongJae Park <sjpark@amazon.de> | 2020-12-14 10:05:47 +0100 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2020-12-14 10:05:47 +0100 |
commit | be987200fbaceaef340872841d4f7af2c5ee8dc3 (patch) | |
tree | 431f88bcf2e666092e7c70a01103896e28beefb2 /drivers/xen/xenbus/xenbus_probe.c | |
parent | 2e85d32b1c865bec703ce0c962221a5e955c52c2 (diff) | |
download | linux-be987200fbaceaef340872841d4f7af2c5ee8dc3.tar.bz2 |
xen/xenbus/xen_bus_type: Support will_handle watch callback
This commit adds support of the 'will_handle' watch callback for
'xen_bus_type' users.
This is part of XSA-349
Cc: stable@vger.kernel.org
Signed-off-by: SeongJae Park <sjpark@amazon.de>
Reported-by: Michael Kurth <mku@amazon.de>
Reported-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe.c')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 4c3d1b84aa0a..44634d970a5c 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -136,7 +136,8 @@ static int watch_otherend(struct xenbus_device *dev) container_of(dev->dev.bus, struct xen_bus_type, bus); return xenbus_watch_pathfmt(dev, &dev->otherend_watch, - NULL, bus->otherend_changed, + bus->otherend_will_handle, + bus->otherend_changed, "%s/%s", dev->otherend, "state"); } |