Commit a3ef1a8e authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman
Browse files

staging: unisys: Lock visorchannels associated with devices



A visorchannel associated with a device should have its writing to
the channel protected by a lock.

Fixes: b32c4997 ('staging: unisys: Move channel creation up the stack')
Signed-off-by: default avatarTim Sell <Timothy.Sell@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 216c3e2c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1247,7 +1247,8 @@ my_device_create(struct controlvm_message *inmsg)
	POSTCODE_LINUX_4(DEVICE_CREATE_ENTRY_PC, dev_no, bus_no,
			 POSTCODE_SEVERITY_INFO);

	visorchannel = visorchannel_create(cmd->create_device.channel_addr,
	visorchannel =
	       visorchannel_create_with_lock(cmd->create_device.channel_addr,
					     cmd->create_device.channel_bytes,
					     GFP_KERNEL,
					     cmd->create_device.data_type_uuid);