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:
commit
2a68050c35
|
|
@ -3050,6 +3050,7 @@ static ATTRIBUTES int ec_ioctl_sc_flag(
|
||||||
kfree(key);
|
kfree(key);
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
key[ioctl.key_size] = '\0';
|
||||||
|
|
||||||
if (down_interruptible(&master->master_sem)) {
|
if (down_interruptible(&master->master_sem)) {
|
||||||
kfree(key);
|
kfree(key);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue