Search Linux Wireless

Re: [PATCH] staging: ath6kl: Fixing device NULL pointer dereference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 14, 2010 at 5:17 PM, Vipin Mehta <vmehta@xxxxxxxxxxx> wrote:
> Fixing the device instance being passed to set_wiphy_dev() from
> NULL to the one being returned by the MMC stack probe callback.
>
> Signed-off-by: Vipin Mehta <vmehta@xxxxxxxxxxx>
> ---
> Âdrivers/staging/ath6kl/os/linux/ar6000_drv.c | Â 19 ++++++++++++-------
> Â1 files changed, 12 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
> index a659f70..9f3e928 100644
> --- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
> +++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
> @@ -1608,6 +1608,15 @@ ar6000_avail_ev(void *context, void *hif_handle)
> Â Â struct wireless_dev *wdev;
> Â#endif /* ATH6K_CONFIG_CFG80211 */
> Â Â A_STATUS init_status = A_OK;
> + Â ÂHIF_DEVICE_OS_DEVICE_INFO osDevInfo;
> +
> + Â ÂA_MEMZERO(&osDevInfo, sizeof(osDevInfo));
> + Â Âif ( A_FAILED( HIFConfigureDevice(hif_handle, HIF_DEVICE_GET_OS_DEVICE,
> + Â Â Â Â Â Â Â Â Â Â&osDevInfo, sizeof(osDevInfo))) )

while you are adding new code, why not use the direct Linux calls?

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux