From: Peter Hurley Date: Tue, 5 Mar 2013 06:09:04 +0000 (+0000) Subject: net/irda: Fix port open counts X-Git-Tag: v3.9-rc3~36^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ed2e737cb73e4405a3649f8aef7619b99fecae;p=pandora-kernel.git net/irda: Fix port open counts Saving the port count bump is unsafe. If the tty is hung up while this open was blocking, the port count is zeroed. Explicitly check if the tty was hung up while blocking, and correct the port count if not. Signed-off-by: Peter Hurley Signed-off-by: David S. Miller --- Reading git-diff-tree failed