Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target: Fix free-after-use regression in PR unregister
This patch addresses a >= v3.11 free-after-use regression in core_scsi3_emulate_pro_register() that was introduced in the following commit: commit bc118fe Author: Andy Grover <[email protected]> Date: Thu May 16 10:41:04 2013 -0700 target: Further refactoring of core_scsi3_emulate_pro_register() To avoid the free-after-use, save an type value before hand, and only call core_scsi3_put_pr_reg() with a valid *pr_reg. Reported-by: Dan Carpenter <[email protected]> Cc: Andy Grover <[email protected]> Cc: <[email protected]> #3.11+ Signed-off-by: Nicholas Bellinger <[email protected]>
- Loading branch information