iser-target: Fix wrong allocation in the case of an empty text message
authorSagi Grimberg <sagig@mellanox.com>
Mon, 26 Jan 2015 10:49:08 +0000 (12:49 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 4 Feb 2015 18:55:34 +0000 (10:55 -0800)
commitb44a2b6790b04621c14de176757a09193699bc37
tree1de060ea8313627641247fcfce95cda37d84c90a
parentbe7dcfb683dd7646050666d1f6597ba413a68b22
iser-target: Fix wrong allocation in the case of an empty text message

if text message dlength is 0, don't allocate a buffer for it, pass
NULL to iscsit_process_text_cmd.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c