diff options
| author | Sergey Shtylyov <s.shtylyov@omprussia.ru> | 2021-04-03 23:43:55 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-04-13 00:16:42 -0400 |
| commit | 6c11dc060427e07ca144eacaccd696106b361b06 (patch) | |
| tree | ed4e06778961a59f3dd9c1db3858d5c0bbf155da /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | scsi: ufs: ufshcd-pltfrm: Fix deferred probing (diff) | |
| download | linux-6c11dc060427e07ca144eacaccd696106b361b06.tar.gz linux-6c11dc060427e07ca144eacaccd696106b361b06.zip | |
scsi: hisi_sas: Fix IRQ checks
Commit df2d8213d9e3 ("hisi_sas: use platform_get_irq()") failed to take
into account that irq_of_parse_and_map() and platform_get_irq() have a
different way of indicating an error: the former returns 0 and the latter
returns a negative error code. Fix up the IRQ checks!
Link: https://lore.kernel.org/r/810f26d3-908b-1d6b-dc5c-40019726baca@omprussia.ru
Fixes: df2d8213d9e3 ("hisi_sas: use platform_get_irq()")
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
