kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: x86/platform/UV: Support UV4 socket address changes
@ 2016-05-06  8:35 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2016-05-06  8:35 UTC (permalink / raw)
  To: kernel-janitors

Hello Mike Travis,

This is a semi-automatic email about new static checker warnings.

The patch 1de329c10d9f: "x86/platform/UV: Support UV4 socket address 
changes" from Apr 29, 2016, leads to the following Smatch complaint:

arch/x86/kernel/apic/x2apic_uv_x.c:1201 decode_uv_systab()
	 error: we previously assumed 'st' could be null (see line 1199)

arch/x86/kernel/apic/x2apic_uv_x.c
  1198		st = uv_systab;
  1199		if ((!st || st->revision < UV_SYSTAB_VERSION_UV4) && !is_uv4_hub())
                      ^^
New check for NULL.

  1200			return;
  1201		if (st->revision != UV_SYSTAB_VERSION_UV4_LATEST) {
                    ^^^^^^^^^^^^
Unchecked dereference in the is_uv4_hub() case.  Perhaps the parenthesis
are not in the right place or the check for NULL can be removed?

  1202			pr_crit(
  1203			"UV: BIOS UVsystab version(%x) mismatch, expecting(%x)\n",

regards,
dan carpenter

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

only message in thread, other threads:[~2016-05-06  8:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06  8:35 x86/platform/UV: Support UV4 socket address changes Dan Carpenter

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).