mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[SCSI] mpt2sas: Fix unsafe using smp_processor_id() in preemptible
When CONFIG_DEBUG_PREEMPT is enabled, bug is observed in the smp_processor_id(). This is because smp_processor_id() is not called in preempt safe condition. To fix this issue, use raw_smp_processor_id instead of smp_processor_id. Signed-off-by: Nagalakshmi Nandigama <[email protected]> CC: [email protected] Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
99becf1328
commit
a2c658505b
1 changed files with 1 additions and 1 deletions
|
|
@ -1792,7 +1792,7 @@ static inline void _base_writeq(__u64 b, volatile void __iomem *addr,
|
|||
static inline u8
|
||||
_base_get_msix_index(struct MPT2SAS_ADAPTER *ioc)
|
||||
{
|
||||
return ioc->cpu_msix_table[smp_processor_id()];
|
||||
return ioc->cpu_msix_table[raw_smp_processor_id()];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue