kernel: fix a checkloop panic caused by EOPNOTSUPP not being passed down correctly
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Wed, 20 Jun 2012 21:59:48 +0000 (21:59 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Wed, 20 Jun 2012 22:07:50 +0000 (22:07 +0000)
commit088621c17af05faef491565f0d1b276d7b2077d0
treec80c630468358659af64afce4c92e727a16b8121
parent01b8b5713691316b09588b9c28117527b3c0d0c6
kernel: fix a checkloop panic caused by EOPNOTSUPP not being passed down correctly

* When poll(2)ing /dev/tty dev_dkqfilter gets called twice,
  on the inner call, since EOPNOTSUPP is returned the outer
  call returns ENODEV leading to a checkloop panic.

* A new testcase in test/testcases/io/poll_1 will panic
  the system if started without this patch applied.
sys/kern/kern_device.c
test/testcases/io/Makefile
test/testcases/io/poll_1/Makefile [new file with mode: 0644]
test/testcases/io/poll_1/poll_1.c [new file with mode: 0644]