aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-sony.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 64f2f51e6698..ec542be818d5 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -1134,7 +1134,7 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev)
1134 int ret; 1134 int ret;
1135 const int buf_size = 1135 const int buf_size =
1136 max(SIXAXIS_REPORT_0xF2_SIZE, SIXAXIS_REPORT_0xF5_SIZE); 1136 max(SIXAXIS_REPORT_0xF2_SIZE, SIXAXIS_REPORT_0xF5_SIZE);
1137 char *buf = kmalloc(buf_size, GFP_KERNEL); 1137 __u8 *buf = kmalloc(buf_size, GFP_KERNEL);
1138 1138
1139 if (!buf) 1139 if (!buf)
1140 return -ENOMEM; 1140 return -ENOMEM;