summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-09-16 13:24:37 +0000
committergibbs <gibbs@FreeBSD.org>1998-09-16 13:24:37 +0000
commit1efe24d918b749204cebe6aa1a1d45bb1ab15fc6 (patch)
tree969aea9369da2c7ee2300281bec38023eb6c11e3 /sys/cam/cam_xpt.c
parent815048f88c3e0dad7a076acd2e17d962b8a3b344 (diff)
downloadFreeBSD-src-1efe24d918b749204cebe6aa1a1d45bb1ab15fc6.zip
FreeBSD-src-1efe24d918b749204cebe6aa1a1d45bb1ab15fc6.tar.gz
Properly allocate our, per lun, probe peripheral softc from
the TEMP malloc pool. Noticed by: Don Lewis <Don.Lewis@tsc.tdk.com>
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r--sys/cam/cam_xpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 418e008..3e00a65 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cam_xpt.c,v 1.2 1998/09/15 22:05:44 gibbs Exp $
+ * $Id: cam_xpt.c,v 1.3 1998/09/16 00:11:33 ken Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -4680,7 +4680,7 @@ proberegister(struct cam_periph *periph, void *arg)
return(CAM_REQ_CMP_ERR);
}
- softc = (probe_softc *)malloc(sizeof(*softc),M_DEVBUF,M_NOWAIT);
+ softc = (probe_softc *)malloc(sizeof(*softc), M_TEMP, M_NOWAIT);
if (softc == NULL) {
printf("proberegister: Unable to probe new device. "
OpenPOWER on IntegriCloud