All of lore.kernel.org
 help / color / mirror / Atom feed
* [brgl-linux:gpio/for-next 39/39] drivers/gpio/gpio-sim.c:755:17-23: ERROR: reference preceded by free on line 754
@ 2021-04-26 21:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-26 21:09 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2776 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Bartosz Golaszewski <bgolaszewski@baylibre.com>
CC: Andy Shevchenko <andy.shevchenko@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
head:   a49d14276ac40782a4a06b7d9043df1cbca7c434
commit: a49d14276ac40782a4a06b7d9043df1cbca7c434 [39/39] gpio: sim: allocate IDA numbers earlier
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> drivers/gpio/gpio-sim.c:755:17-23: ERROR: reference preceded by free on line 754

vim +755 drivers/gpio/gpio-sim.c

3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  742  
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  743  static struct config_item *
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  744  gpio_sim_config_make_item(struct config_group *group, const char *name)
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  745  {
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  746  	struct gpio_sim_chip_config *config;
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  747  
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  748  	config = kzalloc(sizeof(*config), GFP_KERNEL);
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  749  	if (!config)
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  750  		return ERR_PTR(-ENOMEM);
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  751  
a49d14276ac407 Bartosz Golaszewski 2021-04-23  752  	config->id = ida_alloc(&gpio_sim_ida, GFP_KERNEL);
a49d14276ac407 Bartosz Golaszewski 2021-04-23  753  	if (config->id < 0) {
a49d14276ac407 Bartosz Golaszewski 2021-04-23 @754  		kfree(config);
a49d14276ac407 Bartosz Golaszewski 2021-04-23 @755  		return ERR_PTR(config->id);
a49d14276ac407 Bartosz Golaszewski 2021-04-23  756  	}
a49d14276ac407 Bartosz Golaszewski 2021-04-23  757  
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  758  	config_item_init_type_name(&config->item, name,
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  759  				   &gpio_sim_chip_config_type);
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  760  	config->num_lines = 1;
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  761  	mutex_init(&config->lock);
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  762  
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  763  	return &config->item;
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  764  }
3f0279eb9e3767 Bartosz Golaszewski 2021-03-15  765  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65453 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-26 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 21:09 [brgl-linux:gpio/for-next 39/39] drivers/gpio/gpio-sim.c:755:17-23: ERROR: reference preceded by free on line 754 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.