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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 11 Apr 2014 16:26:12 -0400 (EDT)
From:	David Miller <>
Subject: Re: [PATCH V1 net] net/mlx4_core: Preserve pci_dev_data after

From: Wei Yang <>
Date: Thu, 10 Apr 2014 17:25:24 +0800

> pci_match_id() just match the static pci_device_id, which may return NULL if
> someone binds the driver to a device manually using
> /sys/bus/pci/drivers/.../new_id.
> This patch wrap up a helper function __mlx4_remove_one() which does the tear
> down function but preserve the drv_data. Functions like
> mlx4_pci_err_detected() and mlx4_restart_one() will call this one with out
> releasing drvdata.
> Fixes: 97a5221 "net/mlx4_core: pass pci_device_id.driver_data to __mlx4_init_one during reset".
> CC: Bjorn Helgaas <>
> CC: Amir Vadai <>
> CC: Jack Morgenstein <>
> CC: Or Gerlitz <>
> Signed-off-by: Wei Yang <>
> ---
> V0 --> V1:
>    1. zero the mlx4_priv at the end of __mlx4_remove_one
>    2. add a flag in mlx4_priv to mark it is released or not

This doesn't apply to the current 'net' tree, please respin.

And Jack, please do not place any leading spaces before your "Acked-by:",
patchwork will not parse it correctly and pick it up automatically for
me if you do that.

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists