diff options
author | Enze Li <lienze@kylinos.cn> | 2022-04-27 10:56:47 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-05-02 16:59:12 -0400 |
commit | ebc95c790653508ad7e031cfb9de5d0fa39135e2 (patch) | |
tree | 49c1fa28abcf6864f95d0c488e8a193625dd42ed /drivers/scsi/mpi3mr/mpi/mpi30_init.h | |
parent | bb9b9eb0ae2e9d3f6036f0ad907c3a83dcd43485 (diff) | |
download | linux-ebc95c790653508ad7e031cfb9de5d0fa39135e2.tar.gz linux-ebc95c790653508ad7e031cfb9de5d0fa39135e2.tar.bz2 linux-ebc95c790653508ad7e031cfb9de5d0fa39135e2.zip |
scsi: sr: Add memory allocation failure handling for get_capabilities()
The function get_capabilities() has the possibility of failing to allocate
the transfer buffer but it does not currently handle this. This may lead to
exceptions when accessing the buffer.
Add error handling when memory allocation fails.
Link: https://lore.kernel.org/r/20220427025647.298358-1-lienze@kylinos.cn
Signed-off-by: Enze Li <lienze@kylinos.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpi3mr/mpi/mpi30_init.h')
0 files changed, 0 insertions, 0 deletions