From a50da144d048f9dbebed2b1441ed779d6bbbcd03 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 7 Sep 2012 17:30:40 +0200 Subject: [PATCH] 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-format-patch failed