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)
commit093d804611b9a38fe59753b37c29f840518406a9
tree546e8ef4a08c9a0c125c1a1b1afcbfb1873d3ff2
parentbe7a7411d63ccad165d66fe8e0b11b2ee336159b
n_gsm: gsm_data_alloc buffer allocation could fail and it is not being checked

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>
drivers/tty/n_gsm.c