Bug 42142

Summary: mpt2sas: Number specified in wrong base.
Product: SCSI Drivers Reporter: Daniel Bradshaw (daniel.kernel)
Component: OtherAssignee: scsi_drivers-other
Status: CLOSED CODE_FIX    
Severity: low CC: alan, cath_bugz, florian
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.0.4 Subsystem:
Regression: No Bisected commit-id:

Description Daniel Bradshaw 2011-08-31 19:56:38 UTC
I think this is the right product/component combination, sorry if it isn't.

I was hunting through mpt2sas chasing unrelated hardware gremlins and noticed an odd bit of code, I've checked the latest version on lxr and it's still there.

http://lxr.linux.no/linux+v3.0.4/drivers/scsi/mpt2sas/mpt2sas_base.c#L611

 611        /* eat the loginfos associated with task aborts */
 612        if (ioc->ignore_loginfos && (log_info == 30050000 || log_info ==
 613            0x31140000 || log_info == 0x31130000))
 614                return;
 615

I'm assuming that the first of those log_info checks is meant to be 0x30050000, as specified it is rendered always false by the bus type check a few lines above.

It's a minor detail, but I thought I'd report it anyway since it's so trivial to fix if you have the source to hand.

Regards,
Daniel
Comment 1 Florian Mickler 2012-04-04 15:04:18 UTC
A patch referencing this bug report has been merged in Linux v3.4-rc1:

commit 714be35885093305b7491cc3eea959bb3e1be6f2
Author: Sathisha Nanjappa <sathisha.nanjappa@hp.com>
Date:   Tue Mar 13 11:59:28 2012 -0700

    [SCSI] mpt2sas: remove extraneous sas_log_info messages