From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: re: Orangefs: kernel client part 2
Date: Mon, 27 Jul 2015 15:45:05 +0000 [thread overview]
Message-ID: <20150727154505.GA16624@mwanda> (raw)
Hello Mike Marshall,
The patch ac6163f8a3f3: "Orangefs: kernel client part 2" from Jul 17,
2015, leads to the following static checker warning:
fs/orangefs/dir.c:256 pvfs2_readdir()
warn: bool is not less than zero.
fs/orangefs/dir.c
249 if (pos = 0) {
250 ino = get_ino_from_khandle(dentry->d_inode);
251 gossip_debug(GOSSIP_DIR_DEBUG,
252 "%s: calling dir_emit of \".\" with pos = %llu\n",
253 __func__,
254 llu(pos));
255 ret = dir_emit(ctx, ".", 1, ino, DT_DIR);
256 if (ret < 0)
^^^^^^^
Most callers don't check for negative here. I have no idea about fs/
though so I'm not sure what was intended.
257 goto out_destroy_handle;
258 ctx->pos++;
259 gossip_ldebug(GOSSIP_DIR_DEBUG,
260 "%s: ctx->pos:%lld\n",
261 __func__,
262 lld(ctx->pos));
263 pos++;
264 }
regards,
dan carpenter
reply other threads:[~2015-07-27 15:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150727154505.GA16624@mwanda \
--to=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.