diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-11-27 16:11:26 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-11-27 20:48:38 +0000 |
commit | 73bf7c135dfce1d0194de6677ed85495c64e300f (patch) | |
tree | 81549c84c79de0694ca09ac994fcd8bd84b01995 | |
parent | 4a08db73026a67c8979126008f7801a02ac1647e (diff) | |
download | syslinux-73bf7c135dfce1d0194de6677ed85495c64e300f.tar.gz syslinux-73bf7c135dfce1d0194de6677ed85495c64e300f.tar.xz syslinux-73bf7c135dfce1d0194de6677ed85495c64e300f.zip |
pxe: Don't leak inode on timeout
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | core/fs/pxe/pxe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 6f490ce8..3cc64973 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -796,8 +796,10 @@ static void __pxe_searchdir(const char *filename, struct file *file) sendreq: timeout = *timeout_ptr++; - if (!timeout) + if (!timeout) { + free_socket(inode); return; /* No file available... */ + } oldtime = jiffies(); socket->tftp_remoteip = ip; |