mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 11:51:45 +08:00
add 0 terminator in ioctl
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