n_gsm: gsm_data_alloc buffer allocation could fail and it is not being checked
authorKen Mills <ken.k.mills@intel.com>
Mon, 13 Dec 2010 15:28:03 +0000 (15:28 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Dec 2010 21:03:13 +0000 (13:03 -0800)
gsm_data_alloc buffer allocation could fail and it is not being checked.

Add check for allocated buffer and return if the buffer allocation
fails.

Signed-off-by: Ken Mills <ken.k.mills@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found