mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
staging: hv: Fixed the value of the 64bit-hole inside ring buffer
commit e5fa721d1c upstream.
Fixed the value of the 64bit-hole inside ring buffer, this
caused a problem on Hyper-V when running checked Windows builds.
Checked builds of Windows are used internally and given to external
system integrators at times. They are builds that for example that all
elements in a structure follow the definition of that Structure. The bug
this fixed was for a field that we did not fill in at all (Because we do
Not use it on the Linux side), and the checked build of windows gives
errors on it internally to the Windows logs.
This fixes that error.
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8eccb26da5
commit
323f2e45fb
@@ -192,7 +192,7 @@ Description:
|
||||
static inline u64
|
||||
GetRingBufferIndices(RING_BUFFER_INFO* RingInfo)
|
||||
{
|
||||
return ((u64)RingInfo->RingBuffer->WriteIndex << 32) || RingInfo->RingBuffer->ReadIndex;
|
||||
return (u64)RingInfo->RingBuffer->WriteIndex << 32;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user