Re: [PATCH] atm: dereference of he_dev->rbps_virt in he_init_group()
From: David Miller <davem@davemloft.net>
Date: 2009-09-03 06:25:34
From: David Miller <davem@davemloft.net>
Date: 2009-09-03 06:25:34
From: Roel Kluin <redacted> Date: Sat, 29 Aug 2009 20:59:04 +0200
he_dev->rbps_virt or he_dev->rbpl_virt allocation may fail. Signed-off-by: Roel Kluin <redacted> --- There was another in the same function.
These new return statements will both leak resources allocated earlier. All the caller is going to do is return -ENOMEM as well and it does not cleanup actions at all. Please fix this up.