On Fri, 10 Sep 2010 18:33:25 +0900, Jiro SEKIBA wrote: > Hi, > > This patch fixes a wrong return value of nilfs_sb_read when opening > non-nilfs2 device. nilfs_sb_read should return NULL in case it was > not a nilfs2 device instead of "-1" to indicate error. > > Signed-off-by: Jiro SEKIBA <jir@xxxxxxxxx> Applied, thank you. Ryusuke Konishi > --- > lib/sb.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/lib/sb.c b/lib/sb.c > index 201b9ad..b60575d 100644 > --- a/lib/sb.c > +++ b/lib/sb.c > @@ -161,7 +161,7 @@ struct nilfs_super_block *nilfs_sb_read(int devfd) > struct nilfs_super_block *sbp[2]; > > if (__nilfs_sb_read(devfd, sbp, NULL)) > - return -1; > + return NULL; > > if (!sbp[0]) { > sbp[0] = sbp[1]; > -- > 1.7.0.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html