From: David Woodhouse Date: Wed, 19 Dec 2007 13:03:19 +0000 (+0000) Subject: libertas: change inference about buffer size in lbs_cmd() X-Git-Tag: v2.6.25-rc1~1162^2~293 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15ebb63b36eca5fa68fabd04ab2f7840bc67205;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed