linux/drivers/s390
Sebastian Ott ab6aae0902 [S390] cio: fix memleak in subchannel validation
When scanning for new subchannels we have a code path where we allocate
memory for a struct subchannel, set the device name (which is dynamically
allocated now) and do a check if the underlying device is blacklisted - if
so we free the subchannel structure.
Since we have not set up refcounting at this stage, the device name's memory
is lost. Fix this by moving the dev_set_name after the blacklist test.

Note: With this patch the init_name for the console subchannel becomes
virtually obsolete.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-09-11 10:29:39 +02:00
..
block [S390] drivers/s390: put NULL test before dereference 2009-08-23 18:10:00 +02:00
char [S390] improve suspend/resume error messages 2009-07-07 16:37:53 +02:00
cio [S390] cio: fix memleak in subchannel validation 2009-09-11 10:29:39 +02:00
crypto [S390] zcrypt: fix scheduling of hrtimer ap_poll_timer 2009-07-24 12:41:02 +02:00
kvm virtio: find_vqs/del_vqs virtio operations 2009-06-12 22:16:36 +09:30
net [S390] driver_data access 2009-06-22 12:08:23 +02:00
scsi [SCSI] zfcp: Fix tracing of request id for abort requests 2009-07-30 08:49:59 -05:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00