Be consistent with M_ZERO when allocating ccbs.
authorBenno Rice <benno@FreeBSD.org>
Mon, 23 Mar 2015 18:45:37 +0000 (18:45 +0000)
committerBenno Rice <benno@FreeBSD.org>
Mon, 23 Mar 2015 18:45:37 +0000 (18:45 +0000)
commitd3995fdd6a2652a4ffc9753cc49aa16b641511ef
tree8edd3df0dd1dbdb615af5a507bf17d7e6d762219
parentc0089353cfca084ec49bf69f4bbfc4c4b1cfa2de
Be consistent with M_ZERO when allocating ccbs.

There are four places, all in cam_xpt.c, where ccbs are malloc'ed. Two of
these use M_ZERO, two don't. The two that don't meant that allocated ccbs
had trash in them making it hard to debug errors where they showed up. Due
to this, use M_ZERO all the time when allocating ccbs.

Submitted by: Scott Ferris <scott.ferris@isilon.com>
Sponsored by: EMC/Isilon Storage Division
Reviewed by: scottl, imp
Differential: https://reviews.freebsd.org/D2120
sys/cam/cam_xpt.c