提交 3ccc7384 编写于 作者: A Anton Altaparmakov

NTFS: Fix a buggette in an "should be impossible" case handling where we

      continued the attribute lookup loop instead of aborting it.
Signed-off-by: NAnton Altaparmakov <aia21@cantab.net>
上级 67b1dfe7
...@@ -24,6 +24,8 @@ ToDo/Notes: ...@@ -24,6 +24,8 @@ ToDo/Notes:
- Fix two compiler warnings on Alpha. Thanks to Andrew Morton for - Fix two compiler warnings on Alpha. Thanks to Andrew Morton for
reporting them. reporting them.
- Fix an (innocent) off-by-one error in the runlist code. - Fix an (innocent) off-by-one error in the runlist code.
- Fix a buggette in an "should be impossible" case handling where we
continued the attribute lookup loop instead of aborting it.
2.1.26 - Minor bug fixes and updates. 2.1.26 - Minor bug fixes and updates.
......
/** /**
* attrib.c - NTFS attribute operations. Part of the Linux-NTFS project. * attrib.c - NTFS attribute operations. Part of the Linux-NTFS project.
* *
* Copyright (c) 2001-2005 Anton Altaparmakov * Copyright (c) 2001-2006 Anton Altaparmakov
* Copyright (c) 2002 Richard Russon * Copyright (c) 2002 Richard Russon
* *
* This program/include file is free software; you can redistribute it and/or * This program/include file is free software; you can redistribute it and/or
...@@ -1048,7 +1048,7 @@ static int ntfs_external_attr_find(const ATTR_TYPE type, ...@@ -1048,7 +1048,7 @@ static int ntfs_external_attr_find(const ATTR_TYPE type,
le32_to_cpu(ctx->mrec->bytes_allocated)) le32_to_cpu(ctx->mrec->bytes_allocated))
break; break;
if (a->type == AT_END) if (a->type == AT_END)
continue; break;
if (!a->length) if (!a->length)
break; break;
if (al_entry->instance != a->instance) if (al_entry->instance != a->instance)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册