diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-15 03:46:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:37 -0500 |
commit | 9fae899c2b5dc224042da63b14118abdb22ae9b6 (patch) | |
tree | 861ff7fc3577fe495d7a267578d977533a454c2e /drivers/net/wireless/libertas/cmd.h | |
parent | 3399ea5f239d49522212db179bca4de9e84b09df (diff) |
libertas: ensure response buffer size is always set for lbs_cmd_with_response
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.h')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmd.h b/drivers/net/wireless/libertas/cmd.h index 2f4c1ec50392..e334f0e623af 100644 --- a/drivers/net/wireless/libertas/cmd.h +++ b/drivers/net/wireless/libertas/cmd.h | |||
@@ -9,6 +9,10 @@ | |||
9 | #define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) \ | 9 | #define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) \ |
10 | __lbs_cmd(priv, cmdnr, &(cmd)->hdr, sizeof(*(cmd)), cb, cb_arg) | 10 | __lbs_cmd(priv, cmdnr, &(cmd)->hdr, sizeof(*(cmd)), cb, cb_arg) |
11 | 11 | ||
12 | |||
13 | /* lbs_cmd_with_response() infers the size of the command to be _sent_ | ||
14 | and requires that the caller sets cmd->size to the (LE) size of | ||
15 | the _response_ buffer. */ | ||
12 | #define lbs_cmd_with_response(priv, cmdnr, cmd) \ | 16 | #define lbs_cmd_with_response(priv, cmdnr, cmd) \ |
13 | lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd)) | 17 | lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd)) |
14 | 18 | ||