mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 03:53:26 +00:00
bugfix: 修复smp启动的时候,损坏0号核心的idle进程的内核栈的问题 (#711)
--------- Co-authored-by: longjin <longjin@DragonOS.org> Co-authored-by: heyicong <heyicong@dragonos.org>
This commit is contained in:
@ -158,11 +158,13 @@ impl IndexNode for LockedPipeInode {
|
||||
_offset: usize,
|
||||
len: usize,
|
||||
buf: &mut [u8],
|
||||
data: SpinLockGuard<FilePrivateData>,
|
||||
data_guard: SpinLockGuard<FilePrivateData>,
|
||||
) -> Result<usize, SystemError> {
|
||||
let data = data_guard.clone();
|
||||
drop(data_guard);
|
||||
// 获取mode
|
||||
let mode: FileMode;
|
||||
if let FilePrivateData::Pipefs(pdata) = &*data {
|
||||
if let FilePrivateData::Pipefs(pdata) = &data {
|
||||
mode = pdata.mode;
|
||||
} else {
|
||||
return Err(SystemError::EBADF);
|
||||
|
Reference in New Issue
Block a user