From: David S. Miller Date: Tue, 31 Aug 2010 01:35:24 +0000 (-0700) Subject: irda: Correctly clean up self->ias_obj on irda_bind() failure. X-Git-Tag: v2.6.36-rc4~87^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=628e300cccaa628d8fb92aa28cb7530a3d5f2257;p=pandora-kernel.git irda: Correctly clean up self->ias_obj on irda_bind() failure. If irda_open_tsap() fails, the irda_bind() code tries to destroy the ->ias_obj object by hand, but does so wrongly. In particular, it fails to a) release the hashbin attached to the object and b) reset the self->ias_obj pointer to NULL. Fix both problems by using irias_delete_object() and explicitly setting self->ias_obj to NULL, just as irda_release() does. Reported-by: Tavis Ormandy Signed-off-by: David S. Miller --- Reading git-diff-tree failed