Your patch assumes that: a) the console device is also configured as a real device, and b) that the aforementioned configuration has been done before pccnpollc() is called. This is particularly untrue if you boot with `-d'. I've just made a change that should fix the problem correctly.