lib: refcount: Cause kernel panic on refcount error detection
Currently, when using the refcount API functions, a warning is printed out once to let a user of the refcount API know that an error case has been detected. Then the refcount functions will silently return, without modifying the reference count, which could be mistaken for a successful modification. This can allow for improper use of the object associated with that refcount later. Trigger a kernel panic in case of refcount error detection to prevent misuse of objects associated with refcounts. Change-Id: Ifb6a331d08a7d6c285225bc9667d2f4054db3561 Signed-off-by:Isaac J. Manjarres <isaacm@codeaurora.org> Signed-off-by:
Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
Loading
Please register or sign in to comment