mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-23 10:33:49 +08:00
Merge branch 'fix_safeop_wait' into 'stable-1.5'
add 0 terminator in ioctl See merge request etherlab.org/ethercat!95
This commit is contained in:
@@ -3050,6 +3050,7 @@ static ATTRIBUTES int ec_ioctl_sc_flag(
|
||||
kfree(key);
|
||||
return -EFAULT;
|
||||
}
|
||||
key[ioctl.key_size] = '\0';
|
||||
|
||||
if (down_interruptible(&master->master_sem)) {
|
||||
kfree(key);
|
||||
|
||||
Reference in New Issue
Block a user