Skip to contentSkip to conversation

remoteproc: Fix a bug in rproc_alloc()

PATCH Markus Elfring 2 participants 2 messages Apr 14, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

I'm not actually sure this case causes an observable problem, but it's incorrect. Fix this by initializing the notifyids field before calling ida_simple_get() in rproc_alloc().

I suggest to improve the commit message.

* Can the information “field initialisation” be more helpful than “bug” in the patch subject?

* Will the tag “Fixes” become relevant?

Regards,
Markus

#1 lore raw
Quoted 8 lines · Markus Elfring
Quoted 3 lines

I'm not actually sure this case causes an observable problem, but it's incorrect. Fix this by initializing the notifyids field before calling ida_simple_get() in rproc_alloc().

I suggest to improve the commit message.

* Can the information “field initialisation” be more helpful than “bug” in the patch subject?

No objection, though I personally would have spelled it differently :)

Quoted 1 line

* Will the tag “Fixes” become relevant?

This bug was present when this code was first added.

Fixes b5ab5e24e960 ("remoteproc: maintain a generic child device for each rproc")

Mathiew, feel free to add that.

-Alex

Quoted 3 lines

Regards,
Markus