Date: Wed, 2 Jul 2014 16:12:00 +0000 (UTC) From: Jakub Wojciech Klama <jceel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r268164 - user/jceel/soc2014_evdev/head/sys/dev/evdev Message-ID: <201407021612.s62GC0oO046894@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jceel Date: Wed Jul 2 16:11:59 2014 New Revision: 268164 URL: http://svnweb.freebsd.org/changeset/base/268164 Log: Return POLLNVAL when devfs_get_cdevpriv() returns error. Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c ============================================================================== --- user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Wed Jul 2 15:40:25 2014 (r268163) +++ user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Wed Jul 2 16:11:59 2014 (r268164) @@ -230,7 +230,7 @@ evdev_poll(struct cdev *dev, int events, ret = devfs_get_cdevpriv((void **)&state); if (ret != 0) - return (ret); + return (POLLNVAL); client = state->ecs_client;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407021612.s62GC0oO046894>