HomeFreeBSD

MFC r339076

Description

MFC r339076

This has been edited slightly from the version in head. In head, the probe
sections of dadone() were split out into separate functions. In stable/11,
dadone() is still a single function.

So, for stable/11, this describes the change:

sys/cam/scsi/scsi_da.c:
In the DA_CCB_PROBE_DONE case in dadone(), free the data pointer
before returning.


r339076 | ken | 2018-10-01 13:00:46 -0600 (Mon, 01 Oct 2018) | 12 lines

Fix a da(4) driver memory leak for SCSI SMR devices.

In the probe case for SCSI SMR Host Aware or Most Managed drives, be sure
to free allocated memory.

sys/cam/scsi/scsi_da.c:
	In dadone_probezone(), free the data pointer before returning.

Sponsored by:	Spectra Logic

------------------------------------------------------------------------

Sponsored by: Spectra Logic

Details

Provenance
kenAuthored on
Parents
rS339335: Avoid zero-sized kmem_alloc() in vdev_compact_children().
Branches
Unknown
Tags
Unknown