[PATCH RESEND] Once cdev_device_add() failed, we should use put_device() to decrement reference count for cleanup. Or it could cause memory leak. Although operations in err_free_ida are similar to the operations in callback function fsi_slave_release(), put_device() is a correct handling operation as comments require when cdev_device_add() fails.

Show replies by date

2
days inactive
2
days old

linux-stable-mirror@lists.linaro.org

1 comments
participants

Add to favorites Remove from favorites

tags (0)
participants (2)
  • Greg KH
  • Ma Ke