mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "mhi: core: Do a null pointer check before reading debug registers"
This commit is contained in:
commit
ff478e8d76
1 changed files with 2 additions and 0 deletions
|
|
@ -2777,6 +2777,8 @@ void mhi_debug_reg_dump(struct mhi_controller *mhi_cntrl)
|
|||
TO_MHI_STATE_STR(state));
|
||||
|
||||
for (i = 0; debug_reg[i].name; i++) {
|
||||
if (!debug_reg[i].base)
|
||||
continue;
|
||||
ret = mhi_read_reg(mhi_cntrl, debug_reg[i].base,
|
||||
debug_reg[i].offset, &val);
|
||||
MHI_LOG("reg:%s val:0x%x, ret:%d\n", debug_reg[i].name, val,
|
||||
|
|
|
|||
Loading…
Reference in a new issue