From: Amit Shah Date: Mon, 15 Apr 2013 02:30:15 +0000 (+0930) Subject: virtio: console: replace EMFILE with EBUSY for already-open port X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~63^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ff582cd65ad01c45f1971feac28f23b7eb2687;p=pandora-kernel.git virtio: console: replace EMFILE with EBUSY for already-open port Returning EMFILE (process has too many open files) is incorrect to indicate a port is already open by another process. Use EBUSY for that. This does change what we report to userspace, but I believe userspace can look at it this way: it gets EBUSY, a new error code, instead of EMFILE. It's still an error, and that's not changing. Reported-by: Mateusz Guzik Signed-off-by: Amit Shah Signed-off-by: Rusty Russell --- Reading git-diff-tree failed