]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/socket.c
[Bluetooth] Fix HID disconnect NULL pointer dereference
[linux-2.6-omap-h63xx.git] / net / socket.c
index 01918f7a301aaa11f8b2375e6173dc52dee84645..6c9b9b326d764991f4687b9a2799f6c245448834 100644 (file)
@@ -825,7 +825,7 @@ static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg)
                        break;
                case FIOGETOWN:
                case SIOCGPGRP:
-                       err = put_user(sock->file->f_owner.pid,
+                       err = put_user(f_getown(sock->file),
                                       (int __user *)argp);
                        break;
                case SIOCGIFBR: