From: Oleg Drokin Date: Tue, 12 Aug 2014 12:34:23 +0000 (-0400) Subject: LU-4423 obdecho: bitwise vs logical typo X-Git-Tag: 2.6.51~6 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F11410%2F3;p=fs%2Flustre-release.git LU-4423 obdecho: bitwise vs logical typo Bitwise AND was intended here obviously. From upstream kernel commit 96d4b0d5636b1810042eabedf766f35b548f1672 Change-Id: I5f05d14843910c2288c14c55e62615f030a7f445 Signed-off-by: Dan Carpenter Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/11410 Reviewed-by: Dmitry Eremin Reviewed-by: James Simmons Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/obdecho/echo.c b/lustre/obdecho/echo.c index 5ece81d..122eb70 100644 --- a/lustre/obdecho/echo.c +++ b/lustre/obdecho/echo.c @@ -127,10 +127,10 @@ static int echo_create(const struct lu_env *env, struct obd_export *exp, return -EINVAL; } - if (!(oa->o_mode && S_IFMT)) { - CERROR("echo obd: no type!\n"); - return -ENOENT; - } + if (!(oa->o_mode & S_IFMT)) { + CERROR("echo obd: no type!\n"); + return -ENOENT; + } if (!(oa->o_valid & OBD_MD_FLTYPE)) { CERROR("invalid o_valid "LPX64"\n", oa->o_valid);