lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190330130913.GA8643@roam>
Date:   Sat, 30 Mar 2019 21:09:13 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Zeng Tao <prime.zeng@...ilicon.com>
Cc:     kbuild-all@...org, labbott@...hat.com, sumit.semwal@...aro.org,
        devel@...verdev.osuosl.org, Todd Kjos <tkjos@...roid.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
        linaro-mm-sig@...ts.linaro.org,
        Arve Hjønnevåg <arve@...roid.com>,
        prime.zeng@...ilicon.com, Joel Fernandes <joel@...lfernandes.org>,
        Martijn Coenen <maco@...roid.com>,
        Christian Brauner <christian@...uner.io>
Subject: [PATCH] staging: android: ion: fix err_cast.cocci warnings

From: kbuild test robot <lkp@...el.com>

drivers/staging/android/ion/ion.c:427:9-16: WARNING: ERR_CAST can be used with buffer


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

Generated by: scripts/coccinelle/api/err_cast.cocci

Fixes: d51f182d188a ("staging: android: ion: refactory ion_alloc for kernel driver use")
CC: Zeng Tao <prime.zeng@...ilicon.com>
Signed-off-by: kbuild test robot <lkp@...el.com>
---

url:    https://github.com/0day-ci/linux/commits/Zeng-Tao/staging-android-ion-refactory-ion_alloc-for-kernel-driver-use/20190330-071409

 ion.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/staging/android/ion/ion.c
+++ b/drivers/staging/android/ion/ion.c
@@ -424,7 +424,7 @@ struct dma_buf *ion_alloc(size_t len, un
 		return ERR_PTR(-ENODEV);
 
 	if (IS_ERR(buffer))
-		return ERR_PTR(PTR_ERR(buffer));
+		return ERR_CAST(buffer);
 
 	exp_info.ops = &dma_buf_ops;
 	exp_info.size = buffer->size;

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ