Search Linux Wireless

Re: [PATCH] Fix a null pointer check in ssb mipscore init

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

 



On Sunday 14 October 2007 21:04:22 Felix Fietkau wrote:
> Fix a null pointer check in ssb mipscore init
> 
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx>

Acked-by: Michael Buesch <mb@xxxxxxxxx>

> --- a/drivers/ssb/driver_mipscore.c
> +++ b/drivers/ssb/driver_mipscore.c
> @@ -171,20 +171,21 @@ u32 ssb_cpu_clock(struct ssb_mipscore *mcore)
>  	return rate;
>  }
> 
>  void ssb_mipscore_init(struct ssb_mipscore *mcore)
>  {
> -	struct ssb_bus *bus = mcore->dev->bus;
> +	struct ssb_bus *bus;
>  	struct ssb_device *dev;
>  	unsigned long hz, ns;
>  	unsigned int irq, i;
> 
>  	if (!mcore->dev)
>  		return; /* We don't have a MIPS core */
> 
>  	ssb_dprintk(KERN_INFO PFX "Initializing MIPS core...\n");
> 
> +	bus = mcore->dev->bus;
>  	hz = ssb_clockspeed(bus);
>  	if (!hz)
>  		hz = 100000000;
>  	ns = 1000000000 / hz;
> 
> 
> 
> 



-- 
Greetings Michael.
-
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