diff options
| author | Ashwin <ashwin.bhat@broadcom.com> | 2014-09-17 15:49:57 -0700 |
|---|---|---|
| committer | The Android Automerger <android-build@google.com> | 2014-12-05 14:11:22 -0800 |
| commit | 29a26f7b8fc55f1756b62960ead5c4eff1cfe5d2 (patch) | |
| tree | bb6d69bc3594bf0b904e228f3c21c04c8c754661 | |
| parent | 3019b8dfc4cfd46182846b3c58a49782cd0a4fcf (diff) | |
| download | android_hardware_broadcom_wlan-29a26f7b8fc55f1756b62960ead5c4eff1cfe5d2.tar.gz android_hardware_broadcom_wlan-29a26f7b8fc55f1756b62960ead5c4eff1cfe5d2.tar.bz2 android_hardware_broadcom_wlan-29a26f7b8fc55f1756b62960ead5c4eff1cfe5d2.zip | |
dhdutil: Fix issue with dhd_upload which causes kernel panic
Bug: 18608773
Change-Id: I6cc6a8a36c5ba386171bd7285d4d4729f44ad9e1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
| -rw-r--r-- | bcmdhd/dhdutil/dhdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcmdhd/dhdutil/dhdu.c b/bcmdhd/dhdutil/dhdu.c index 6b2007c..2c628c2 100644 --- a/bcmdhd/dhdutil/dhdu.c +++ b/bcmdhd/dhdutil/dhdu.c @@ -2154,7 +2154,7 @@ dhd_upload(void *dhd, cmd_t *cmd, char **argv) ramsize = *(uint32*)buf; if (!ramsize) - ramsize = start + size; + ramsize = size; if ((fp = fopen(fname, "wb")) == NULL) { fprintf(stderr, "%s: Could not open %s: %s\n", @@ -2165,7 +2165,7 @@ dhd_upload(void *dhd, cmd_t *cmd, char **argv) /* default size to full RAM */ if (!size) - size = ramsize - start; + size = ramsize; /* read memory and write to file */ while (size) { |
