Skip to content

Commit

Permalink
Resolve reported build issue in Orical Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Mitchell <[email protected]>
  • Loading branch information
npmitche committed Dec 2, 2024
1 parent b34fd4f commit 7cb3b9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/linux/chipsec_km.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,9 @@ static long d_ioctl(struct file *file, unsigned int ioctl_num, unsigned long ioc
//IN params: SMI_code_data, _rax, _rbx, _rcx, _rdx, _rsi, _rdi
#ifdef CONFIG_X86

unsigned long flags;
unsigned long m_time;

printk( KERN_INFO "[chipsec] > IOCTL_SWSMI_TIMED\n");
numargs = 7;
if(copy_from_user((void*)ptrbuf, (void*)ioctl_param, (sizeof(long) * numargs)) > 0)
Expand All @@ -1114,8 +1117,6 @@ static long d_ioctl(struct file *file, unsigned int ioctl_num, unsigned long ioc
break;
}

unsigned long flags;
unsigned long m_time;
preempt_disable();
local_irq_save(flags);
__swsmi_timed__((SMI_CTX *)ptr, &m_time);
Expand Down

0 comments on commit 7cb3b9d

Please sign in to comment.