Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2006 17:28:40 -0400
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Subject:   File descriptor leak in libcam
Message-ID:  <1146346120.16564.12.camel@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

--=-letydybKu0mE5nEAPMfi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

There is a leak in the cam_lookup_pass() if the ioctl call fails to find
the passthru device.  Basically, the xpt file descriptor will not be
closed.  Can anyone give me permission to commit the following patch?
Thanks.

http://www.marcuscom.com/downloads/camlib.c.diff

Joe

--=20
Joe Marcus Clarke
FreeBSD GNOME Team      ::      gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

--=-letydybKu0mE5nEAPMfi
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEU9qIb2iPiv4Uz4cRAml5AKCd1Gherl0V2JWMKz9d6/TuvZ5OnACfSWhG
o0qVpdxVW2EPvlOCVdcPnHI=
=bIEk
-----END PGP SIGNATURE-----

--=-letydybKu0mE5nEAPMfi--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146346120.16564.12.camel>