vfs_gpfs_prefetch: correctly return -1 on error condition in smbd_gpfs_fcntl()
authorMichael Adam <obnox@samba.org>
Wed, 28 Jan 2009 12:34:34 +0000 (13:34 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 19 Mar 2009 23:06:05 +0000 (00:06 +0100)
Michael

source/modules/vfs_gpfs_prefetch.c

index 77f265fc2421b70647e86f223d9514a50fa10c3d..308ac10910b7f009ee38a9af9979074d8850b4fa 100644 (file)
@@ -41,7 +41,7 @@ static int smbd_gpfs_fcntl(int fd, void *arg)
                if (libgpfs_handle == NULL) {
                        DEBUG(10, ("sys_dlopen for libgpfs failed: %s\n",
                                   strerror(errno)));
-                       return;
+                       return -1;
                }
 
                gpfs_fcntl_fn = sys_dlsym(libgpfs_handle, "gpfs_fcntl");