commit | 381e309a658feadb48c14566b3b26ccb7eec75a0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Apr 17 09:33:59 2012 +0300 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Sun May 06 15:02:33 2012 -0700 |
tree | bebfccfbb0353296a9b2d5c3f8e563341296d0e9 | |
parent | bfb79eac2026b411df9e253a9c350039b4b04bb7 [diff] |
target/iscsi: cleanup some allocation style issues We can use kcalloc() here instead of kzalloc(). It's better style and it has overflow checking built in. Also -ENOMEM is the correct error code for allocation errors. -1 means -EPERM. None of the callers preserve the error codes so it doesn't matter except as a cleanup. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>