Skip to content

Commit

Permalink
mfd: Fix aat2870 build failure for x86_64
Browse files Browse the repository at this point in the history
Without this fix, we get:

error: call to ‘copy_from_user_overflow’ declared with attribute error:
copy_from_user() buffer size is not provably correct
make[3]: *** [drivers/mfd/aat2870-core.o] Error 1

And this was triggered by commit da417bacc9143b934f1a480a25d0fb2bb648a820

Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Jin Park authored and Samuel Ortiz committed Oct 24, 2011
1 parent 782baa2 commit c38d66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/aat2870-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ static ssize_t aat2870_reg_write_file(struct file *file,
{
struct aat2870_data *aat2870 = file->private_data;
char buf[32];
int buf_size;
ssize_t buf_size;
char *start = buf;
unsigned long addr, val;
int ret;
Expand Down

0 comments on commit c38d66a

Please sign in to comment.