aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorLv Ruyi <lv.ruyi@zte.com.cn>2022-04-18 10:57:55 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 09:02:44 -0400
commitc5acd61dbb32b6bda0f3a354108f2b8dcb788985 (patch)
tree6b357e6a5571de4d2f35a476d95c96a1594a9b17 /tools/perf/scripts/python/syscall-counts.py
parent1497e95e22c3be382217da290106ab4f865dc1fa (diff)
scsi: megaraid: Fix error check return value of register_chrdev()
If major equals 0, register_chrdev() returns an error code when it fails. This function dynamically allocates a major and returns its number on success, so we should use "< 0" to check it instead of "!". Link: https://lore.kernel.org/r/20220418105755.2558828-1-lv.ruyi@zte.com.cn Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions