diff options
author | Bart Van Assche | 2021-03-20 16:23:59 -0700 |
---|---|---|
committer | Martin K. Petersen | 2021-03-24 21:47:21 -0400 |
commit | e5406d8ad4a1659f4d4d1b39fe203855c4eaef2d (patch) | |
tree | 07680dd9599282246fee7619230f1ef2a6f9df24 /tools/objtool | |
parent | a2b2cc660822cae08c351c7f6b452bfd1330a4f7 (diff) |
scsi: qla2xxx: Check kzalloc() return value
Instead of crashing if kzalloc() fails, make qla2x00_get_host_stats()
return -ENOMEM.
Link: https://lore.kernel.org/r/20210320232359.941-8-bvanassche@acm.org
Fixes: dbf1f53cfd23 ("scsi: qla2xxx: Implementation to get and manage host, target stats and initiator port")
Cc: Himanshu Madhani <himanshu.madhani@oracle.com>
Cc: Saurav Kashyap <skashyap@marvell.com>
Cc: Nilesh Javali <njavali@marvell.com>
Cc: Quinn Tran <qutran@marvell.com>
Cc: Mike Christie <michael.christie@oracle.com>
Cc: Daniel Wagner <dwagner@suse.de>
Cc: Lee Duncan <lduncan@suse.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Acked-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/objtool')
0 files changed, 0 insertions, 0 deletions