Messages in this thread | | | Date | Wed, 22 Jul 2015 22:32:59 +0200 | From | Alexandre Belloni <> | Subject | Re: [PATCH 1/4] RTC: fix double free in rtc_register_device() error path |
| |
On 20/07/2015 at 16:02:49 -0700, Dmitry Torokhov wrote : > Commit 59cca865f21e9e7beab73fcf79ba4eb776a4c228 correctly noted that naked > kfree() should not be used after failed device_register() call, however, > while it added the needed put_device() it forgot to remove the original > kfree() causing double-free. > > Cc: Vasiliy Kulikov <segooon@gmail.com> > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> > --- > drivers/rtc/class.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Applied after fixing the commit description in the commit log, thanks.
-- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
| |