misdn: Close the file descriptor if the ioctl is failing

Fixes: Coverity CID#1040691
1 file changed