[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mips-cvs
Subject: MIPS: ath79: Fix test for error return of clk_register_fixed_factor().
From: linux-mips () linux-mips ! org
Date: 2016-08-17 8:07:05
Message-ID: S23992256AbcHQIHHpcnoF/20160817080707Z+1322 () eddie ! linux-mips ! org
[Download RAW message or body]
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Fri Aug 12 08:36:54 2016 +0530
Comitter: Ralf Baechle <ralf@linux-mips.org> Tue Aug 16 15:41:52 2016 +0200
Commit: 6d0bb8dbe3ea2cd805ce476bab454302a7d72565
Gitweb: https://git.linux-mips.org/g/ralf/linux/6d0bb8dbe3ea
Branch: master
clk_register_fixed_factor returns an ERR_PTR in case of an error and
should have an IS_ERR check instead of a null check.
The Coccinelle semantic patch used to find this issue is as follows:
@@
expression e;
statement S;
@@
*e = clk_register_fixed_factor(...);
if (!e) S
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: julia.lawall@lip6.fr
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13894/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
arch/mips/ath79/clock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic