summaryrefslogtreecommitdiff
path: root/drivers/scsi/sym53c8xx_2/sym_hipd.c
diff options
context:
space:
mode:
authorPeter Staubach <staubach@redhat.com>2005-11-07 11:59:42 +0300
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 18:53:39 +0300
commit6fdcc2162285a8fc96ab12ff85086c37bceaa494 (patch)
tree957c0a2c2c273f6f13d8b9f95412f71856b5d449 /drivers/scsi/sym53c8xx_2/sym_hipd.c
parent5c7ad5104d8ecf2c3a6428d73748126e91b1a250 (diff)
downloadlinux-6fdcc2162285a8fc96ab12ff85086c37bceaa494.tar.xz
[PATCH] memory leak in dentry_open()
There is a memory leak possible in dentry_open(). If get_empty_filp() fails, then the references to dentry and mnt need to be released. The attached patch adds the calls to dput() and mntput() to release these two references. Signed-off-by: Peter Staubach <staubach@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/sym53c8xx_2/sym_hipd.c')
0 files changed, 0 insertions, 0 deletions