Skip to content

fix(log): remove duplicate pushcli in log_write#359

Open
himanshi1505 wants to merge 1 commit intocodenet:p28-killfrom
himanshi1505:fix/log-write-double-pushcli
Open

fix(log): remove duplicate pushcli in log_write#359
himanshi1505 wants to merge 1 commit intocodenet:p28-killfrom
himanshi1505:fix/log-write-double-pushcli

Conversation

@himanshi1505
Copy link
Copy Markdown

Bug

log_write in log.c calls pushcli() twice but popcli() only once.

Fix

Drop the duplicate pushcli() so the function has balanced
pushcli() / popcli().

log_write called pushcli() twice but popcli() only once, so every
FS write leaked one cli depth and left interrupts disabled after
the caller's matching popcli. Drop the redundant second pushcli.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant