Print this page
10132 smatch fixes for MDB
Reviewed by: Andy Fiddaman <andy@omniosce.org>

*** 22,31 **** --- 22,35 ---- * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* + * Copyright (c) 2018, Joyent, Inc. + */ + + /* * mdb dcmds for selected structures from * usr/src/uts/common/sys/crypto/spi.h * * Also the mdb module housekeeping */
*** 189,199 **** const mdb_arg_t *argv) { crypto_mech_info_t minfo; const char *unit = "bits"; ! if (! flags & DCMD_ADDRSPEC) return (DCMD_USAGE); if (mdb_vread(&minfo, sizeof (crypto_mech_info_t), addr) == -1) { mdb_warn("cannot read addr %p", addr); --- 193,203 ---- const mdb_arg_t *argv) { crypto_mech_info_t minfo; const char *unit = "bits"; ! if (!(flags & DCMD_ADDRSPEC)) return (DCMD_USAGE); if (mdb_vread(&minfo, sizeof (crypto_mech_info_t), addr) == -1) { mdb_warn("cannot read addr %p", addr);