From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753308AbbGVUlD (ORCPT ); Wed, 22 Jul 2015 16:41:03 -0400 Received: from down.free-electrons.com ([37.187.137.238]:37724 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751924AbbGVUlA (ORCPT ); Wed, 22 Jul 2015 16:41:00 -0400 Date: Wed, 22 Jul 2015 22:40:57 +0200 From: Alexandre Belloni To: Dmitry Torokhov Cc: Alessandro Zummo , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] RTC: properly manage lifetime of dev and cdev in rtc device Message-ID: <20150722204057.GN2853@piout.net> References: <1437433372-15425-1-git-send-email-dmitry.torokhov@gmail.com> <1437433372-15425-3-git-send-email-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437433372-15425-3-git-send-email-dmitry.torokhov@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/07/2015 at 16:02:51 -0700, Dmitry Torokhov wrote : > struct rtc embeds both struct dev and struct cdev. Unfortunately character > device structure may outlive the parent rtc structure unless we set it up > as parent of character device so that it will stay pinned until character > device is freed. > > Signed-off-by: Dmitry Torokhov > --- > drivers/rtc/rtc-dev.c | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com