[lkml]   [2010]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[028/129] staging: hv: Fixed the value of the 64bit-hole inside ring buffer
    2.6.35-stable review patch.  If anyone has any objections, please let us know.


    From: Haiyang Zhang <>

    commit e5fa721d1c2a54261a37eb59686e18dee34b6af6 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 <>
    Signed-off-by: Haiyang Zhang <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/staging/hv/ring_buffer.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    --- a/drivers/staging/hv/ring_buffer.c
    +++ b/drivers/staging/hv/ring_buffer.c
    @@ -192,8 +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;

     \ /
      Last update: 2010-09-18 21:39    [W:0.047 / U:31.768 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site