s390/scm_blk: fix memleak in init function
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 25 Apr 2013 11:03:18 +0000 (13:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Apr 2013 07:07:17 +0000 (09:07 +0200)
commitda543bc60273feb97865d5bd6cfd495f3c825209
tree7ce1be7df2d0c10adf9be0ba921673a13d8125a6
parentee18d829d84336293bae05dccbed274192921bff
s390/scm_blk: fix memleak in init function

If the allocation of a single request fails the already allocated
requests will not be freed.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/scm_blk.c