Missing 'break' in the switch statement meant that we'd fall through to the 'return -EINVAL' case.
Attach a file by drag & drop or click to upload