ChangeSet 1.2337, 2005/03/31 22:54:44-08:00, [EMAIL PROTECTED]

        [NBD]: Fix i_sock reference.
        
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 nbd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/block/nbd.c b/drivers/block/nbd.c
--- a/drivers/block/nbd.c       2005-04-01 09:12:09 -08:00
+++ b/drivers/block/nbd.c       2005-04-01 09:12:09 -08:00
@@ -549,7 +549,7 @@
                file = fget(arg);
                if (file) {
                        inode = file->f_dentry->d_inode;
-                       if (inode->i_sock) {
+                       if (S_ISSOCK(inode->i_mode)) {
                                lo->file = file;
                                lo->sock = SOCKET_I(inode);
                                error = 0;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to