From: Paolo Bonzini Date: Fri, 7 Sep 2012 15:30:40 +0000 (+0200) Subject: target: support zero allocation length in SBC commands X-Git-Tag: v3.7-rc1~61^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a50da144d048f9dbebed2b1441ed779d6bbbcd03;p=pandora-kernel.git target: support zero allocation length in SBC commands READ CAPACITY must be subject to the same treatment as INQUIRY, REQUEST SENSE, and MODE SENSE, but there are no pre-existing bugs to fix here. Just use an on-stack buffer, and copy to it after checking the return value of transport_kmap_data_sg. Signed-off-by: Paolo Bonzini Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed