All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest 49/60] drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.
@ 2020-12-05  8:37 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-12-05  8:37 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>

tree:   https://github.com/intel/tdx.git guest
head:   f421c3155e99854fdd23334c21f62240448c4dfc
commit: 894a86dd4b8d4b2e851493155ac53071bf821611 [49/60] ACPI: Add SVKL table support
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: i386-randconfig-m021-20201204 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.

vim +165 drivers/acpi/svkl.c

894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  140  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  141  static int __init acpi_svkl_init(void)
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  142  {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  143  	acpi_status status = AE_OK;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  144  	int ret;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  145  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  146  	ret = misc_register(&acpi_svkl_dev);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  147  	if (ret) {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  148  		pr_err("SVKL: can't misc_register on minor=%d\n",
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  149  			MISC_DYNAMIC_MINOR);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  150  		return ret;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  151  	}
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  152  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  153  	mutex_init(&svkl_lock);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  154  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  155  	status = acpi_get_table(ACPI_SIG_SVKL, 0, &svkl_tbl_hdr);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  156  	if (ACPI_FAILURE(status) || !svkl_tbl_hdr) {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  157  		pr_err("get table failed\n");
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  158  		return -ENODEV;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  159  	}
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  160  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  161  	dump_svkl_header();
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  162  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  163  	pr_info("ACPI: SVKL module loaded\n");
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  164  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19 @165  	return 0;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  166  }
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  167  

---
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: 32766 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [intel-tdx:guest 49/60] drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.
@ 2020-12-07  9:37 ` Dan Carpenter
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2020-12-07  9:37 UTC (permalink / raw)
  To: kbuild

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

tree:   https://github.com/intel/tdx.git guest
head:   f421c3155e99854fdd23334c21f62240448c4dfc
commit: 894a86dd4b8d4b2e851493155ac53071bf821611 [49/60] ACPI: Add SVKL table support
config: i386-randconfig-m021-20201204 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158.

vim +165 drivers/acpi/svkl.c

894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  141  static int __init acpi_svkl_init(void)
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  142  {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  143  	acpi_status status = AE_OK;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  144  	int ret;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  145  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  146  	ret = misc_register(&acpi_svkl_dev);
                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  147  	if (ret) {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  148  		pr_err("SVKL: can't misc_register on minor=%d\n",
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  149  			MISC_DYNAMIC_MINOR);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  150  		return ret;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  151  	}
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  152  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  153  	mutex_init(&svkl_lock);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  154  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  155  	status = acpi_get_table(ACPI_SIG_SVKL, 0, &svkl_tbl_hdr);
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  156  	if (ACPI_FAILURE(status) || !svkl_tbl_hdr) {
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  157  		pr_err("get table failed\n");
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  158  		return -ENODEV;

misc_deregister(&acpi_svkl_dev); before returning.

894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  159  	}
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  160  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  161  	dump_svkl_header();
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  162  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  163  	pr_info("ACPI: SVKL module loaded\n");
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  164  
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19 @165  	return 0;
894a86dd4b8d4b2 Kuppuswamy Sathyanarayanan 2020-06-19  166  }

---
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: 32766 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-07  9:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05  8:37 [intel-tdx:guest 49/60] drivers/acpi/svkl.c:165 acpi_svkl_init() warn: '&acpi_svkl_dev' not released on lines: 158 kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-12-07  9:37 Dan Carpenter
2020-12-07  9:37 ` Dan Carpenter

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.