diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2007-12-19 16:03:19 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-01-29 02:07:51 +0300 |
| commit | f15ebb63b36eca5fa68fabd04ab2f7840bc67205 (patch) | |
| tree | 6b2952b6744062e8487646d08e55eb04c87e2d83 /include | |
| parent | 4f59abf190b15350167bec5382dda205030ac9d0 (diff) | |
| download | linux-f15ebb63b36eca5fa68fabd04ab2f7840bc67205.tar.xz | |
libertas: change inference about buffer size in lbs_cmd()
sizeof(*cmd) is going to give the total size of the data structure that
we allocated, more often than not. But the size of the command to be
_sent_ could be a lot smaller, as it is in the KEY_MATERIAL and
SUBSCRIBE_EVENT commands for example. So swap them round; let the caller
set the _command_ size explicitly in the header, and infer the
maximum response size from the data structure.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
