Re: [PATCH] ipmi: code cleanup and prevent potential issue.

2020-06-09 Thread Corey Minyard
On Tue, Jun 09, 2020 at 01:04:10AM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > All the previous get/put operations against intf->refcount are > inside the mutex. Thus, put the last kref_put() also inside mutex > to make sure get/put functions execute in order and prevent the > potential

[PATCH] ipmi: code cleanup and prevent potential issue.

2020-06-08 Thread wu000273
From: Qiushi Wu All the previous get/put operations against intf->refcount are inside the mutex. Thus, put the last kref_put() also inside mutex to make sure get/put functions execute in order and prevent the potential race condition. Signed-off-by: Qiushi Wu --- drivers/char/ipmi/ipmi_msghand