diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2016-04-20 05:13:36 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2016-04-20 05:13:36 +0000 |
commit | 26b5a97a27a2f16512197d3618b5874d183736f4 (patch) | |
tree | a9392868f76d4b8c4011967941068fe7e0a2623c /sys/dev/sym/sym_hipd.c | |
parent | 115b4b94215246e58c6eb24cc9298b1ae4060324 (diff) | |
download | src-26b5a97a27a2f16512197d3618b5874d183736f4.tar.gz src-26b5a97a27a2f16512197d3618b5874d183736f4.zip |
sym(4): Don't double-free 'sim' in failure case
Reported by: Coverity
CID: 1006106
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=298340
Diffstat (limited to 'sys/dev/sym/sym_hipd.c')
-rw-r--r-- | sys/dev/sym/sym_hipd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index 43a0e9d74473..321fc6008c3b 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -8890,6 +8890,7 @@ static int sym_cam_attach(hcb_p np) if (xpt_bus_register(sim, np->device, 0) != CAM_SUCCESS) goto fail; np->sim = sim; + sim = NULL; if (xpt_create_path(&path, NULL, cam_sim_path(np->sim), CAM_TARGET_WILDCARD, |