mirror of https://gitee.com/openkylin/linux.git
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: b32c4997c
('staging: unisys: Move channel creation up the stack')
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
216c3e2c13
commit
a3ef1a8e93
|
@ -1247,10 +1247,11 @@ my_device_create(struct controlvm_message *inmsg)
|
||||||
POSTCODE_LINUX_4(DEVICE_CREATE_ENTRY_PC, dev_no, bus_no,
|
POSTCODE_LINUX_4(DEVICE_CREATE_ENTRY_PC, dev_no, bus_no,
|
||||||
POSTCODE_SEVERITY_INFO);
|
POSTCODE_SEVERITY_INFO);
|
||||||
|
|
||||||
visorchannel = visorchannel_create(cmd->create_device.channel_addr,
|
visorchannel =
|
||||||
cmd->create_device.channel_bytes,
|
visorchannel_create_with_lock(cmd->create_device.channel_addr,
|
||||||
GFP_KERNEL,
|
cmd->create_device.channel_bytes,
|
||||||
cmd->create_device.data_type_uuid);
|
GFP_KERNEL,
|
||||||
|
cmd->create_device.data_type_uuid);
|
||||||
|
|
||||||
if (!visorchannel) {
|
if (!visorchannel) {
|
||||||
POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no,
|
POSTCODE_LINUX_4(DEVICE_CREATE_FAILURE_PC, dev_no, bus_no,
|
||||||
|
|
Loading…
Reference in New Issue