Skip to content

Commit

Permalink
12419 intel_nb5000: variable may be used uninitialized
Browse files Browse the repository at this point in the history
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Aug 5, 2020
1 parent b8ffbd3 commit 1a10a90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions usr/src/uts/intel/io/intel_nb5000/intel_nb5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ nf_memory_error(const nb_regs_t *rp, void *data)
sp->channel = -1;
if (nb_mode != NB_MEMORY_MIRROR) {
recmema = rp->nb.nf_fbd_regs.recmema;
recmemb = rp->nb.nf_fbd_regs.recmemb;
sp->rank = (recmema >> 8) & RANK_MASK;
sp->bank = (recmema >> 12) & BANK_MASK;
sp->cas = (recmemb >> 16) & CAS_MASK;
Expand Down Expand Up @@ -2165,6 +2166,8 @@ nb_drain(void *ignored, const void *data, const errorq_elem_t *eqe)
char buf[FM_MAX_CLASS];
nb_scatchpad_t nb_scatchpad;

eqep = NULL;
scr_eqep = NULL;
if (panicstr) {
if ((eqep = errorq_reserve(ereport_errorq)) == NULL)
return;
Expand Down

0 comments on commit 1a10a90

Please sign in to comment.