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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141103212139.GB7379@kroah.com>
Date:	Mon, 3 Nov 2014 13:21:39 -0800
From:	Greg KH <gregkh@...uxfoundation.org>
To:	Stephanie Wallick <stephanie.s.wallick@...el.com>
Cc:	linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org,
	"Sean O. Stalley" <sean.stalley@...el.com>
Subject: Re: [PATCH 01/10] added media agnostic (MA) USB HCD driver

On Mon, Nov 03, 2014 at 12:42:48PM -0800, Stephanie Wallick wrote:
> +EXPORT_SYMBOL(mausb_register_ms_driver);

EXPORT_SYMBOL_GPL()?  I have to ask...

> +static int mausb_hcd_init(void)
> +{
> +	int ret;
> +
> +	/* register HCD driver */
> +	ret = platform_driver_register(&mausb_driver);

Why is this a platform driver?  How does this relate to platform
hardware?

> +	if (ret < 0) {
> +		printk(KERN_DEBUG "%s: failed to register HC driver: "
> +			" error number %d\n", __func__, ret);

pr_err()?

return here, that way you don't need:

> +	} else {

This indentation.

> +		/* register HCD device */
> +		ret = platform_device_register(&mausb_pdev);

But again, why is this a platform device?  What platform resources does
it have / require?

> +
> +		if (ret < 0) {
> +			printk(KERN_DEBUG "%s: failed to register HC device:"
> +				"error number %d\n", __func__, ret);

pr_err()?

> +			platform_driver_unregister(&mausb_driver);
> +		} else {
> +			/* direct the release function (for exiting) */
> +			mausb_pdev.dev.release = &mausb_dev_release;

That seems like a serious hack, why do you need to do this in this
manner?

> +
> +			if (ret < 0) {
> +				printk(KERN_DEBUG "failed to register HC"
> +					" chardev: error number %d\n", ret);

pr_err()?

thanks,

greg k-h
--
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