Skip to content

Commit

Permalink
12415 ecpp: variable may be used uninitialized
Browse files Browse the repository at this point in the history
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Apr 1, 2020
1 parent 5338faa commit f70049b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/src/uts/common/io/ecpp.c
Expand Up @@ -3052,6 +3052,8 @@ ecpp_isr(caddr_t arg)
int retval = DDI_INTR_UNCLAIMED;
hrtime_t now;

dsr = 0;
dcsr = 0;
mutex_enter(&pp->umutex);
/*
* interrupt may occur while other thread is holding the lock
Expand Down

0 comments on commit f70049b

Please sign in to comment.