]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Update incorrect ddt_zap_lookup() assertion
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Jul 2012 21:47:57 +0000 (14:47 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Jul 2012 22:14:34 +0000 (15:14 -0700)
commit42d3b990cfba9906e25bbf6b60e96389244f8082
tree84d254408b06ff8c876aa94879d988d835c5bbc2
parentfa881d4addb7baa44c69350b91bdf0503221d7af
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>
module/zfs/ddt_zap.c