[PATCH] cxl: Unlock on error in probe

Dan Carpenter dan.carpenter at oracle.com
Fri May 5 17:37:44 AEST 2017


On Fri, May 05, 2017 at 05:14:15PM +1000, Andrew Donnellan wrote:
> sem is a global and it looks like it's intended to be held after
> device_open() returns and only released in device_close(), so this looks
> wrong.
> 

This doesn't affect the success path, it only means that if
device_open() fails because we don't have enough free memory or whatever
then we can try again later.

regards,
dan carpenter



More information about the Linuxppc-dev mailing list