You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes global callbacks array and replaces with callback
member inside `struct bm_zms_fs`.
This fixes a bug where registering multiple callbacks on
the same `struct bm_zms_fs` would update the user reference
number incrementally and saturate the global callbacks array.
When calling `bm_zms_clear`, this would only reset to NULL
the last callback set, leaving the rest still set.
This update makes it so that there can only be one callback
per each `struct bm_zms_fs` instance, mirroring the behavior
of other libraries.
Due to this change, also removes the `BM_ZMS_MAX_USERS`
Kconfig option.
Signed-off-by: Mirko Covizzi <[email protected]>
0 commit comments