X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fsparc64%2Fsolaris%2Fsocksys.c;h=d7c1c76582cc3698d3f2b028103166a3f8c31266;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e16e64d8a6f87b5bc9d545fa1eed2b635372c208;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/sparc64/solaris/socksys.c b/arch/sparc64/solaris/socksys.c index e16e64d8a..d7c1c7658 100644 --- a/arch/sparc64/solaris/socksys.c +++ b/arch/sparc64/solaris/socksys.c @@ -150,7 +150,7 @@ static unsigned int socksys_poll(struct file * filp, poll_table * wait) unsigned int mask = 0; ino=filp->f_dentry->d_inode; - if (ino && ino->i_sock) { + if (ino && S_ISSOCK(ino->i_mode)) { struct sol_socket_struct *sock; sock = (struct sol_socket_struct*)filp->private_data; if (sock && sock->pfirst) {