* [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap [not found] <1470937308-9480-1-git-send-email-arvind.yadav.cs@gmail.com> @ 2016-08-16 13:04 ` Daniel Lezcano 2016-08-22 17:42 ` arvind Yadav 0 siblings, 1 reply; 2+ messages in thread From: Daniel Lezcano @ 2016-08-16 13:04 UTC (permalink / raw) To: linux-arm-kernel Hi Arvind, On 08/11/2016 07:41 PM, Arvind Yadav wrote: > iounmap frees the mapping when timer id is not matching. > > Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> > --- Even if this fix is correct, it does actually rollback a minimalist part of what was done and only if the clock type is wrong. Can you properly handle the undo from the different init functions and regarding their success/error ? Thanks. -- Daniel > drivers/clocksource/clps711x-timer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c > index 84aed78..deaca51 100644 > --- a/drivers/clocksource/clps711x-timer.c > +++ b/drivers/clocksource/clps711x-timer.c > @@ -116,6 +116,7 @@ static int __init clps711x_timer_init(struct device_node *np) > case CLPS711X_CLKSRC_CLOCKEVENT: > return _clps711x_clkevt_init(clock, base, irq); > default: > + iounmap(base); > return -EINVAL; > } > } > -- <http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 2+ messages in thread
* [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap 2016-08-16 13:04 ` [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap Daniel Lezcano @ 2016-08-22 17:42 ` arvind Yadav 0 siblings, 0 replies; 2+ messages in thread From: arvind Yadav @ 2016-08-22 17:42 UTC (permalink / raw) To: linux-arm-kernel On Tuesday 16 August 2016 06:34 PM, Daniel Lezcano wrote: > Hi Arvind, > > On 08/11/2016 07:41 PM, Arvind Yadav wrote: >> iounmap frees the mapping when timer id is not matching. >> >> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> >> --- > Even if this fix is correct, it does actually rollback a minimalist part > of what was done and only if the clock type is wrong. Can you properly > handle the undo from the different init functions and regarding their > success/error ? > > Thanks. > > -- Daniel As per your concern, I have done the changes. please review it. --Arvind >> drivers/clocksource/clps711x-timer.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c >> index 84aed78..deaca51 100644 >> --- a/drivers/clocksource/clps711x-timer.c >> +++ b/drivers/clocksource/clps711x-timer.c >> @@ -116,6 +116,7 @@ static int __init clps711x_timer_init(struct device_node *np) >> case CLPS711X_CLKSRC_CLOCKEVENT: >> return _clps711x_clkevt_init(clock, base, irq); >> default: >> + iounmap(base); >> return -EINVAL; >> } >> } >> > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-22 17:42 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1470937308-9480-1-git-send-email-arvind.yadav.cs@gmail.com> 2016-08-16 13:04 ` [v.1] clocksource:clps711x-timer:- Unmap a region obtained by remap Daniel Lezcano 2016-08-22 17:42 ` arvind Yadav
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).