Fixed select() in Linux driver