Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80224f06 authored by Erik Arfvidson's avatar Erik Arfvidson Committed by Greg Kroah-Hartman
Browse files

staging: unisys: visorbus: check parahotplug_request_complete_result



This patch modifies the caller of parahotplug_request_complete()
to check the return value and return appropriate result.

Signed-off-by: default avatarErik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Acked-By: default avatarNeil Horman <nhorman@tuxdriver.com>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ff13cf37
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2036,11 +2036,14 @@ static ssize_t devicedisabled_store(struct device *dev,
				    const char *buf, size_t count)
{
	unsigned int id;
	int err;

	if (kstrtouint(buf, 10, &id))
		return -EINVAL;

	parahotplug_request_complete(id, 0);
	err = parahotplug_request_complete(id, 0);
	if (err < 0)
		return err;
	return count;
}