aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-09-19 17:56:19 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-09-26 17:21:16 -0700
commit8e75a0d65dce9d24b551d4a5ccbe00a23771583a (patch)
treeb13d5c1cef909f1964f7e97660e93607d356cd19 /net/unix/af_unix.c
parent602b219309ced41c9787976230e5536c1796c720 (diff)
irda: Correctly clean up self->ias_obj on irda_bind() failure.
[ Upstream commit 628e300cccaa628d8fb92aa28cb7530a3d5f2257 ] 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 <taviso@cmpxchg8b.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions