diff options
author | Jonathan Zhou <jonathan.zhouwen@huawei.com> | 2020-09-16 22:17:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-17 19:46:05 +0300 |
commit | 685d84a7862eb0ca80e47f4179a7f0774462e539 (patch) | |
tree | 668ef3d34fba3f644987ba5aabe489effd47a8bd /drivers/parisc/Makefile | |
parent | 6d578258b955fc8888e1bbd9a8fefe7b10065a84 (diff) | |
download | linux-685d84a7862eb0ca80e47f4179a7f0774462e539.tar.xz |
coresight: etm4x: Fix mis-usage of nr_resource in sysfs interface
The member @nr_resource represents how many resource selector pairs,
and the pair 0 is always implemented and reserved.
So let's multiply by 2 when resetting the selector configuration.
And also update the validation of the input @idx.
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Jonathan Zhou <jonathan.zhouwen@huawei.com>
[Fixed typographical error in changelog, added stable]
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200916191737.4001561-16-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parisc/Makefile')
0 files changed, 0 insertions, 0 deletions