Re: [rtc] 4cd8adb100: WARNING: CPU: 0 PID: 1 at lib/kobject.c:690 kobject_put

From: Greg Kroah-Hartman
Date: Fri Mar 17 2017 - 02:12:06 EST


On Thu, Mar 16, 2017 at 11:23:26PM -0600, Logan Gunthorpe wrote:
> Hey,
>
> I think I see the issue here: in a couple of error conditions, the RTC
> code will not initialize and ask for the cdev. However, my change will
> always call cdev_add and cdev_del even though the rtc code did not call
> cdev_init. I'll have to add a guard around dev->devt in the new
> cdev_device functions. I'll prepare another patch tomorrow.
>
> I also noticed that I neglected to remove the prototypes for the two RTC
> function I removed. I'll fix that too.

Ok, I'm just going to drop this series from my tree so that other
patches in it can get pushed out to linux-next. Please resend the full
series after you have fixed it up, and I'll be glad to queue it up
again.

thanks,

greg k-h