diff options
author | Michael J. Ruhl <michael.j.ruhl@intel.com> | 2017-07-24 07:45:43 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-31 15:17:54 -0400 |
commit | 42492011ab23f44c63dad0c7096492313dc207e3 (patch) | |
tree | 4745781a978dbd6ba25dd2ef1ec532e89c59ac22 /block/ioprio.c | |
parent | bcad29137a9731bfa5e16d64bf8e8a71a268ac88 (diff) |
IB/hfi1: Assign context does not clean up file descriptor correctly on error
In the error path for context allocation, the file descriptor pointer
should not point to a context when an error occurs.
Clean up the appropriate references on error.
Fixes: Commit 62239fc6e5545b2e59f83dfbc5db231a81f37a45 ("IB/hfi1: Clean up on context initialization failure")
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'block/ioprio.c')
0 files changed, 0 insertions, 0 deletions