lkml.org 
[lkml]   [2019]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL 6/7] stm class: Fix an endless loop in channel allocation
On Thu, Feb 21, 2019 at 03:49:58PM +0200, Alexander Shishkin wrote:
> From: Zhi Jin <zhi.jin@intel.com>
>
> There is a bug in the channel allocation logic that leads to an endless
> loop when looking for a contiguous range of channels in a range with a
> mixture of free and occupied channels. For example, opening three
> consequtive channels, closing the first two and requesting 4 channels in
> a row will trigger this soft lockup. The bug is that the search loop
> forgets to skip over the range once it detects that one channel in that
> range is occupied.
>
> Restore the original intent to the logic by fixing the omission.
>
> Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices")
> Signed-off-by: Zhi Jin <zhi.jin@intel.com>
> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>

This should have a cc: stable in it, right?

thanks,

greg k-h

\
 
 \ /
  Last update: 2019-02-21 15:45    [W:1.048 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site