2013/11/18 Caizhiyong :
> From: Cai Zhiyong
> Date: Mon, 18 Nov 2013 20:21:49 +0800
> Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
>
> This patch give a warning when calling regmap_register_patch with
> parameter num_regs <= 0.
>
> When the
On Mon, Nov 18, 2013 at 12:29:02PM +, Caizhiyong wrote:
> This patch give a warning when calling regmap_register_patch with
> parameter num_regs <= 0.
Applied, thanks.
signature.asc
Description: Digital signature
From: Cai Zhiyong
Date: Mon, 18 Nov 2013 20:21:49 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs <= 0.
When the num_regs parameter is zero and krealloc doesn't fail,
then the c
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 18 Nov 2013 20:21:49 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0.
When the num_regs parameter is zero and krealloc doesn't
On Mon, Nov 18, 2013 at 12:29:02PM +, Caizhiyong wrote:
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0.
Applied, thanks.
signature.asc
Description: Digital signature
2013/11/18 Caizhiyong caizhiy...@hisilicon.com:
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 18 Nov 2013 20:21:49 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0
2013/11/15 Mark Brown :
> On Fri, Nov 15, 2013 at 01:52:19PM -0200, Geyslan Gregório Bem wrote:
>
>> + if (WARN_ONCE(num_regs <= 0, "number of registers [%d] must be
>> major than 0", num_regs))
>> + return 0;
>
> "must be more than" but yes.
Tks. Sorry for my poor english. :D
2013-11-15 16:52 keltezéssel, Geyslan Gregório Bem írta:
> 2013/11/15 Levente Kurusa :
>> 2013-11-15 14:00 keltezéssel, Geyslan Gregório Bem írta:
>>> 2013/11/15 Caizhiyong :
>>>> From: Cai Zhiyong
>>>> Date: Mon, 11 Nov 2013 19:26:14 +0800
>>&g
On Fri, Nov 15, 2013 at 01:52:19PM -0200, Geyslan Gregório Bem wrote:
> + if (WARN_ONCE(num_regs <= 0, "number of registers [%d] must be
> major than 0", num_regs))
> + return 0;
"must be more than" but yes.
signature.asc
Description: Digital signature
2013/11/15 Levente Kurusa :
> 2013-11-15 14:00 keltezéssel, Geyslan Gregório Bem írta:
>> 2013/11/15 Caizhiyong :
>>> From: Cai Zhiyong
>>> Date: Mon, 11 Nov 2013 19:26:14 +0800
>>> Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
&g
2013-11-15 14:00 keltezéssel, Geyslan Gregório Bem írta:
> 2013/11/15 Caizhiyong :
>> From: Cai Zhiyong
>> Date: Mon, 11 Nov 2013 19:26:14 +0800
>> Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
>>
>> This patch give a warning w
2013/11/15 Caizhiyong :
> From: Cai Zhiyong
> Date: Mon, 11 Nov 2013 19:26:14 +0800
> Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
>
> This patch give a warning when calling regmap_register_patch with
> parameter num_regs <= 0.
>
> When the
From: Cai Zhiyong
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs <= 0.
When the num_regs parameter is zero and krealloc doesn't fail,
then the c
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0.
When the num_regs parameter is zero and krealloc doesn't
2013/11/15 Caizhiyong caizhiy...@hisilicon.com:
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0
2013-11-15 14:00 keltezéssel, Geyslan Gregório Bem írta:
2013/11/15 Caizhiyong caizhiy...@hisilicon.com:
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling
2013/11/15 Levente Kurusa le...@linux.com:
2013-11-15 14:00 keltezéssel, Geyslan Gregório Bem írta:
2013/11/15 Caizhiyong caizhiy...@hisilicon.com:
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized
On Fri, Nov 15, 2013 at 01:52:19PM -0200, Geyslan Gregório Bem wrote:
+ if (WARN_ONCE(num_regs = 0, number of registers [%d] must be
major than 0, num_regs))
+ return 0;
must be more than but yes.
signature.asc
Description: Digital signature
: [PATCH] regmap: Fix 'ret' would return an uninitialized value
This patch give a warning when calling regmap_register_patch with
parameter num_regs = 0.
When the num_regs parameter is zero and krealloc doesn't fail,
then the code would return an uninitialized value. However,
calling
2013/11/15 Mark Brown broo...@kernel.org:
On Fri, Nov 15, 2013 at 01:52:19PM -0200, Geyslan Gregório Bem wrote:
+ if (WARN_ONCE(num_regs = 0, number of registers [%d] must be
major than 0, num_regs))
+ return 0;
must be more than but yes.
Tks. Sorry for my poor english.
On Mon, Nov 11, 2013 at 11:35:52AM +, Caizhiyong wrote:
> + int ret = 0;
With the if statement below you probably don't need to do this any more.
> + if (num_regs <= 0) {
> + WARN_ONCE(1, "Call regmap_register_patch with num_regs <= 0.");
> + return 0;
> +
On Mon, Nov 11, 2013 at 11:35:52AM +, Caizhiyong wrote:
+ int ret = 0;
With the if statement below you probably don't need to do this any more.
+ if (num_regs = 0) {
+ WARN_ONCE(1, Call regmap_register_patch with num_regs = 0.);
+ return 0;
+ }
From: Cai Zhiyong
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
- Fix 'ret' would return an uninitialized value.
- Add a warning avoid invalid 'num_regs' value passed in.
When the num_regs parameter is zero and krealloc doesn't
From: Cai Zhiyong caizhiy...@huawei.com
Date: Mon, 11 Nov 2013 19:26:14 +0800
Subject: [PATCH] regmap: Fix 'ret' would return an uninitialized value
- Fix 'ret' would return an uninitialized value.
- Add a warning avoid invalid 'num_regs' value passed in.
When the num_regs parameter is zero
24 matches
Mail list logo