diff options
author | Zhi Jin <zhi.jin@intel.com> | 2018-09-06 15:22:10 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 20:09:39 +0100 |
commit | dd6ce0316e70c7d0848823b1351f6df28e1a1d09 (patch) | |
tree | 1582121606ca0816521c9dfd164f0698c838a7f3 /Kconfig | |
parent | a253d1f3e490068fb017855da481762c53f01ab5 (diff) | |
download | linux-stable-dd6ce0316e70c7d0848823b1351f6df28e1a1d09.tar.gz linux-stable-dd6ce0316e70c7d0848823b1351f6df28e1a1d09.tar.bz2 linux-stable-dd6ce0316e70c7d0848823b1351f6df28e1a1d09.zip |
stm class: Fix an endless loop in channel allocation
commit a1d75dad3a2c689e70a1c4e0214cca9de741d0aa upstream.
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.
Signed-off-by: Zhi Jin <zhi.jin@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices")
CC: stable@vger.kernel.org # v4.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions