HomeFreeBSD

Update incorrect ddt_zap_lookup() assertion

Description

Update incorrect ddt_zap_lookup() assertion

When the ddt_zap_lookup() function was updated to dynamically
allocate memory for the cbuf variable, to save stack space, the
'csize <= sizeof (cbuf)' assertion was not updated. The result
of this was that the size of the pointer was being used in the
comparison rather than the buffer size.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Prakash Surya <surya1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 3 2012, 9:47 PM
Parents
rGfa881d4addb7: Remove Chaos 4.x RPM support
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG42d3b990cfba: Update incorrect ddt_zap_lookup() assertion (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jul 3 2012, 10:14 PM