diff options
author | Quentin Lambert <lambert.quentin@gmail.com> | 2016-11-19 18:43:18 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-22 17:04:32 -0500 |
commit | 2d76a2478bb8c54d241b23a699d55f90b7efd036 (patch) | |
tree | bf5211c46f225ad49b5a26873f9c3b7c6df9f056 | |
parent | 75b1cc4ad63afa28c1a045b5157c008f405f06a9 (diff) |
scsi: pmcraid: Add missing resource releases
Most error branches following the call to pmcraid_get_free_cmd contain a
call to pmcraid_return_cmd. This patch add these calls where they are
missing.
Moreover, most error branches following the call to class_create contain
a call to class_destroy. This patch add these calls where they are
missing.
This issue was found with Hector.
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>