lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 24 Nov 2013 00:41:32 +0000
From:	One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>
To:	"David E. Box" <david.e.box@...ux.intel.com>
Cc:	tglx@...utronix.de, mingo@...hat.com, hpa@...or.com, rjw@...k.pl,
	x86@...nel.org, linux-kernel@...r.kernel.org,
	linux-acpi@...r.kernel.org
Subject: Re: [PATCH 1/2] New Driver for IOSF-SB MBI access on Intel SOCs

On Thu, 21 Nov 2013 22:05:56 -0800
"David E. Box" <david.e.box@...ux.intel.com> wrote:

> +static int iosf_mbi_probe(struct platform_device *pdev)
> +{
> +	struct resource *mem;
> +
> +	/* Get and map MBI address space */
> +	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> +	iosf_mbi_data.addr = devm_ioremap_resource(&pdev->dev, mem);

Purely "defensive driv(er)ing" but platform_get_resource can return NULL

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ