All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/char/tpm/tpm_eventlog_efi.c:53:23-30: WARNING opportunity for kmemdep
@ 2018-02-14 14:51 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-02-14 14:51 UTC (permalink / raw)
  To: Thiebaud Weksteen
  Cc: kbuild-all, linux-kernel, Jarkko Sakkinen, Jason Gunthorpe,
	Javier Martinez Canillas

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   61f14c015f5be9151ba25e638d349f4d40cb7cd4
commit: 58cc1e4faf10a73c4302825ffd37a47d410fc1b5 tpm: parse TPM event logs based on EFI table
date:   5 weeks ago


coccinelle warnings: (new ones prefixed by >>)

>> drivers/char/tpm/tpm_eventlog_efi.c:53:23-30: WARNING opportunity for kmemdep

vim +53 drivers/char/tpm/tpm_eventlog_efi.c

    22	
    23		struct linux_efi_tpm_eventlog *log_tbl;
    24		struct tpm_bios_log *log;
    25		u32 log_size;
    26		u8 tpm_log_version;
    27	
    28		if (!(chip->flags & TPM_CHIP_FLAG_TPM2))
    29			return -ENODEV;
    30	
    31		if (efi.tpm_log == EFI_INVALID_TABLE_ADDR)
    32			return -ENODEV;
    33	
    34		log = &chip->log;
    35	
    36		log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl), MEMREMAP_WB);
    37		if (!log_tbl) {
    38			pr_err("Could not map UEFI TPM log table !\n");
    39			return -ENOMEM;
    40		}
    41	
    42		log_size = log_tbl->size;
    43		memunmap(log_tbl);
    44	
    45		log_tbl = memremap(efi.tpm_log, sizeof(*log_tbl) + log_size,
    46				   MEMREMAP_WB);
    47		if (!log_tbl) {
    48			pr_err("Could not map UEFI TPM log table payload!\n");
    49			return -ENOMEM;
    50		}
    51	
    52		/* malloc EventLog space */
  > 53		log->bios_event_log = kmalloc(log_size, GFP_KERNEL);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

only message in thread, other threads:[~2018-02-14 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 14:51 drivers/char/tpm/tpm_eventlog_efi.c:53:23-30: WARNING opportunity for kmemdep kbuild 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.