Re: [PATCH] regulator: s5m8767: Fix probe failure due to stack corruption

2012-12-24 Thread Mark Brown
On Wed, Dec 12, 2012 at 08:57:00AM +0530, Inderpal Singh wrote: > The function sec_reg_read invokes regmap_read which expects unsigned int * > as the destination address. The existing driver is passing address of local > variable "val" which is u8. This causes the stack corruption and following >

Re: [PATCH] regulator: s5m8767: Fix probe failure due to stack corruption

2012-12-24 Thread Mark Brown
On Wed, Dec 12, 2012 at 08:57:00AM +0530, Inderpal Singh wrote: The function sec_reg_read invokes regmap_read which expects unsigned int * as the destination address. The existing driver is passing address of local variable val which is u8. This causes the stack corruption and following dump

[PATCH] regulator: s5m8767: Fix probe failure due to stack corruption

2012-12-11 Thread Inderpal Singh
The function sec_reg_read invokes regmap_read which expects unsigned int * as the destination address. The existing driver is passing address of local variable "val" which is u8. This causes the stack corruption and following dump is observed during probe. Hence change "val" from u8 to unsigned

[PATCH] regulator: s5m8767: Fix probe failure due to stack corruption

2012-12-11 Thread Inderpal Singh
The function sec_reg_read invokes regmap_read which expects unsigned int * as the destination address. The existing driver is passing address of local variable val which is u8. This causes the stack corruption and following dump is observed during probe. Hence change val from u8 to unsigned int.