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)
commitfff60fabc71c41bd1bd4beb4fdd735bb8e01096c
tree7ce1be7df2d0c10adf9be0ba921673a13d8125a6
parentbd86055fc938493259a15dc00ee77435b4d2e83f
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