op_ret checking in pl_open_cbk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

there is a checking in pl_open_cbk, it's "if (op_ret == 0)", i think
it should be "if (op_ret >= 0)", what do you think:

following is the patch:
$ diff -u posix-locks.c.orig posix-locks.c
--- posix-locks.c.orig  2008-03-04 17:45:41.000000000 +0800
+++ posix-locks.c       2008-03-04 17:46:52.000000000 +0800
@@ -735,7 +735,7 @@
   posix_locks_private_t *priv = (posix_locks_private_t *)this->private;
   pthread_mutex_lock (&priv->mutex);

-  if (op_ret == 0) {
+  if (op_ret >= 0) {
     pl_fd_t *pfd = calloc (1, sizeof (pl_fd_t));
     pl_inode_t *inode;


-- 
Best Regards,
 LI Daobing




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux