-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix riscv013_invalidate_cached_progbuf()
#1140
Conversation
Failed on checkpatch? Sigh - that thing seems like such a waste of time... :-| This is simply incorrect:
The commit DOES have a commit description.
|
The
In your case, the "description" part appears missing. I understand that the checkpatch script may be annoying at times, but in this case:
Thank you for the patch. |
Ok, thanks @JanMatCodasip. I'd forgotten about that requirement and am used to repos that aren't so picky about the commit message and allow a single line. It would be more helpful if checkpatch actually gave a more accurate and prescriptive error message in this case. I'll update the commit/PR this morning to fix the commit message. |
8317e0f
to
142b78b
Compare
OMG - checkpatch is such a waste of time!
|
See #1139 riscv013_invalidate_cached_progbuf() was failing to zeroize the final buffer array element. Use memset() instead of a manual loop to zeroize it in order to address this and simplify the code.
142b78b
to
16fa57d
Compare
Third time lucky? Edit: looks like it - phew! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@TommyMurphyTM1234 Thanks for your patience with checkpatch :-)
Thanks a lot @JanMatCodasip.
Apologies for venting - hopefully I'll remember its vagaries next time! 😄 |
Fix for this issue:
Using
memset()
instead of manual loop to zeroize the whole array sincememset()
is used elsewhere for similar purposes and is more reliable (no miscounting elements).