Commit c38d66ac924e84ea3606c408b117157415df07b3

Authored by Jin Park
Committed by Samuel Ortiz
1 parent 782baa20b2

mfd: Fix aat2870 build failure for x86_64

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mfd/aat2870-core.c
... ... @@ -295,7 +295,7 @@
295 295 {
296 296 struct aat2870_data *aat2870 = file->private_data;
297 297 char buf[32];
298   - int buf_size;
  298 + ssize_t buf_size;
299 299 char *start = buf;
300 300 unsigned long addr, val;
301 301 int ret;