Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7007d00caca268e1ba2bcaa6bed4a6456a96884b Commit: 7007d00caca268e1ba2bcaa6bed4a6456a96884b Parent: 58a9ac17ed7a78958d03f3b4af107f0ef075cbed Author: Felix Fietkau <[EMAIL PROTECTED]> AuthorDate: Sun Oct 14 21:04:22 2007 +0200 Committer: John W. Linville <[EMAIL PROTECTED]> CommitDate: Tue Oct 16 21:04:11 2007 -0400
[PATCH] ssb: Fix a null pointer check in mipscore init Fix a null pointer check in ssb mipscore init Signed-off-by: Felix Fietkau <[EMAIL PROTECTED]> Acked-by: Michael Buesch <[EMAIL PROTECTED]> Signed-off-by: John W. Linville <[EMAIL PROTECTED]> --- drivers/ssb/driver_mipscore.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/ssb/driver_mipscore.c b/drivers/ssb/driver_mipscore.c index ab8691a..3d3dd32 100644 --- a/drivers/ssb/driver_mipscore.c +++ b/drivers/ssb/driver_mipscore.c @@ -173,7 +173,7 @@ u32 ssb_cpu_clock(struct ssb_mipscore *mcore) 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; @@ -183,6 +183,7 @@ void ssb_mipscore_init(struct ssb_mipscore *mcore) ssb_dprintk(KERN_INFO PFX "Initializing MIPS core...\n"); + bus = mcore->dev->bus; hz = ssb_clockspeed(bus); if (!hz) hz = 100000000; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html