Date: Tue, 2 Apr 2013 09:38:05 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249008 - head/sys/cam Message-ID: <201304020938.r329c5b6034225@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Tue Apr 2 09:38:04 2013 New Revision: 249008 URL: http://svnweb.freebsd.org/changeset/base/249008 Log: Fix panic in the error path caused by recursive acquisition of XPT topology lock. Reviewed by: ken Modified: head/sys/cam/cam_periph.c Modified: head/sys/cam/cam_periph.c ============================================================================== --- head/sys/cam/cam_periph.c Tue Apr 2 09:33:22 2013 (r249007) +++ head/sys/cam/cam_periph.c Tue Apr 2 09:38:04 2013 (r249008) @@ -218,9 +218,9 @@ cam_periph_alloc(periph_ctor_t *periph_c } if (*p_drv == NULL) { printf("cam_periph_alloc: invalid periph name '%s'\n", name); + xpt_unlock_buses(); xpt_free_path(periph->path); free(periph, M_CAMPERIPH); - xpt_unlock_buses(); return (CAM_REQ_INVALID); } periph->unit_number = camperiphunit(*p_drv, path_id, target_id, lun_id);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304020938.r329c5b6034225>