diff options
-rw-r--r-- | drivers/net/wireless/b43legacy/debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43legacy/phy.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c index 03ce0821a60e..1f85ac569fec 100644 --- a/drivers/net/wireless/b43legacy/debugfs.c +++ b/drivers/net/wireless/b43legacy/debugfs.c | |||
@@ -211,7 +211,7 @@ static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf, | |||
211 | struct b43legacy_dfs_file *dfile; | 211 | struct b43legacy_dfs_file *dfile; |
212 | ssize_t uninitialized_var(ret); | 212 | ssize_t uninitialized_var(ret); |
213 | char *buf; | 213 | char *buf; |
214 | const size_t bufsize = 1024 * 128; | 214 | const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ |
215 | const size_t buforder = get_order(bufsize); | 215 | const size_t buforder = get_order(bufsize); |
216 | int err = 0; | 216 | int err = 0; |
217 | 217 | ||
diff --git a/drivers/net/wireless/b43legacy/phy.c b/drivers/net/wireless/b43legacy/phy.c index 4c9442b16f3f..11319ec2d64a 100644 --- a/drivers/net/wireless/b43legacy/phy.c +++ b/drivers/net/wireless/b43legacy/phy.c | |||
@@ -1296,12 +1296,10 @@ void b43legacy_lo_write(struct b43legacy_wldev *dev, | |||
1296 | /* Sanity check. */ | 1296 | /* Sanity check. */ |
1297 | if (pair->low < -8 || pair->low > 8 || | 1297 | if (pair->low < -8 || pair->low > 8 || |
1298 | pair->high < -8 || pair->high > 8) { | 1298 | pair->high < -8 || pair->high > 8) { |
1299 | struct b43legacy_phy *phy = &dev->phy; | ||
1300 | b43legacydbg(dev->wl, | 1299 | b43legacydbg(dev->wl, |
1301 | "WARNING: Writing invalid LOpair " | 1300 | "WARNING: Writing invalid LOpair " |
1302 | "(low: %d, high: %d, index: %lu)\n", | 1301 | "(low: %d, high: %d)\n", |
1303 | pair->low, pair->high, | 1302 | pair->low, pair->high); |
1304 | (unsigned long)(pair - phy->_lo_pairs)); | ||
1305 | dump_stack(); | 1303 | dump_stack(); |
1306 | } | 1304 | } |
1307 | #endif | 1305 | #endif |