tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git 
linux-4.18.y-rt-rebase
head:   b4466c6bd89795d7b1d54e874db8f72925738bb3
commit: 2fe5189d064e5831a3c65a2dd0cab65f527e3d18 [24/260] clocksource/drivers: 
atmel-pit: make option silent

smatch warnings:
drivers/clocksource/timer-atmel-pit.c:183 at91sam926x_pit_dt_init() warn: 
possible memory leak of 'data'

# 
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=2fe5189d064e5831a3c65a2dd0cab65f527e3d18
git remote add linux-rt-devel 
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git remote update linux-rt-devel
git checkout 2fe5189d064e5831a3c65a2dd0cab65f527e3d18
vim +/data +183 drivers/clocksource/timer-atmel-pit.c

ad48ce74 arch/arm/mach-at91/at91sam926x_time.c       Andrew Victor     
2008-04-16  165  
1a0ed732 arch/arm/mach-at91rm9200/at91sam926x_time.c Andrew Victor     
2006-12-01  166  /*
ad48ce74 arch/arm/mach-at91/at91sam926x_time.c       Andrew Victor     
2008-04-16  167   * Set up both clocksource and clockevent support.
1a0ed732 arch/arm/mach-at91rm9200/at91sam926x_time.c Andrew Victor     
2006-12-01  168   */
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  169  static int __init at91sam926x_pit_dt_init(struct device_node 
*node)
1a0ed732 arch/arm/mach-at91rm9200/at91sam926x_time.c Andrew Victor     
2006-12-01  170  {
ad48ce74 arch/arm/mach-at91/at91sam926x_time.c       Andrew Victor     
2008-04-16  171          unsigned long   pit_rate;
ad48ce74 arch/arm/mach-at91/at91sam926x_time.c       Andrew Victor     
2008-04-16  172          unsigned        bits;
986c2657 arch/arm/mach-at91/at91sam926x_time.c       Nicolas Ferre     
2012-02-17  173          int             ret;
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  174          struct pit_data *data;
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  175  
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  176          data = kzalloc(sizeof(*data), GFP_KERNEL);
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  177          if (!data)
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  178                  return -ENOMEM;
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  179  
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  180          data->base = of_iomap(node, 0);
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  181          if (!data->base) {
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09  182                  pr_err("Could not map PIT address\n");
a17686c4 drivers/clocksource/timer-atmel-pit.c       Alexandre Belloni 
2016-09-09 @183                  return -ENXIO;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to