> > Reminder: Linux syscalls report EWHATEVER by returning -EWHATEVER (in > > which case libc sets errno and reports -1 to the user). > > Right. I got confused by the (wrong) return of EINVAL a little bit > further down in the code. I have fixed it now. Indeed, after patch, rebuild, and reboot all is well. -D