projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910570b
)
ath9k: cleanup a min_t() cast
author
Dan Carpenter
<
[email protected]
>
Wed, 1 Feb 2012 07:43:31 +0000
(10:43 +0300)
committer
John W. Linville
<
[email protected]
>
Mon, 6 Feb 2012 19:55:42 +0000
(14:55 -0500)
If the firmware was over 2G, it would cause memory corruption and the
system would die here. Obviously we all know the firmware isn't going
to be that large but static checkers get upset.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/hif_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hif_usb.c
b/drivers/net/wireless/ath/ath9k/hif_usb.c
index f317515d8bf374e4b56348af1cf16b98cd3accae..424aabb2c7302db2bc74d4ca52256ae61fcac222 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/
drivers/net/wireless/ath/ath9k/hif_usb.c
@@
-981,7
+981,7
@@
static int ath9k_hif_usb_download_fw(struct hif_device_usb *hif_dev)
return -ENOMEM;
while (len) {
- transfer = min_t(
in
t, len, 4096);
+ transfer = min_t(
size_
t, len, 4096);
memcpy(buf, data, transfer);
err = usb_control_msg(hif_dev->udev,