@@ -891,7 +891,7 @@ FAT16GetDirtyStatus(
891
891
* - Allocate a big enough buffer
892
892
* - And read the disk
893
893
*/
894
- Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_VFAT );
894
+ Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_BUFFER );
895
895
if (Sector == NULL )
896
896
{
897
897
* DirtyStatus = TRUE;
@@ -902,7 +902,7 @@ FAT16GetDirtyStatus(
902
902
if (!NT_SUCCESS (Status ))
903
903
{
904
904
* DirtyStatus = TRUE;
905
- ExFreePoolWithTag (Sector , TAG_VFAT );
905
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
906
906
return Status ;
907
907
}
908
908
#endif
@@ -917,7 +917,7 @@ FAT16GetDirtyStatus(
917
917
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
918
918
CcUnpinData (Context );
919
919
#else
920
- ExFreePoolWithTag (Sector , TAG_VFAT );
920
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
921
921
#endif
922
922
return STATUS_DISK_CORRUPT_ERROR ;
923
923
}
@@ -931,7 +931,7 @@ FAT16GetDirtyStatus(
931
931
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
932
932
CcUnpinData (Context );
933
933
#else
934
- ExFreePoolWithTag (Sector , TAG_VFAT );
934
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
935
935
#endif
936
936
return STATUS_SUCCESS ;
937
937
}
@@ -969,7 +969,7 @@ FAT32GetDirtyStatus(
969
969
* - Allocate a big enough buffer
970
970
* - And read the disk
971
971
*/
972
- Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_VFAT );
972
+ Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_BUFFER );
973
973
if (Sector == NULL )
974
974
{
975
975
* DirtyStatus = TRUE;
@@ -980,7 +980,7 @@ FAT32GetDirtyStatus(
980
980
if (!NT_SUCCESS (Status ))
981
981
{
982
982
* DirtyStatus = TRUE;
983
- ExFreePoolWithTag (Sector , TAG_VFAT );
983
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
984
984
return Status ;
985
985
}
986
986
#endif
@@ -995,7 +995,7 @@ FAT32GetDirtyStatus(
995
995
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
996
996
CcUnpinData (Context );
997
997
#else
998
- ExFreePoolWithTag (Sector , TAG_VFAT );
998
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
999
999
#endif
1000
1000
return STATUS_DISK_CORRUPT_ERROR ;
1001
1001
}
@@ -1009,7 +1009,7 @@ FAT32GetDirtyStatus(
1009
1009
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
1010
1010
CcUnpinData (Context );
1011
1011
#else
1012
- ExFreePoolWithTag (Sector , TAG_VFAT );
1012
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1013
1013
#endif
1014
1014
return STATUS_SUCCESS ;
1015
1015
}
@@ -1077,7 +1077,7 @@ FAT16SetDirtyStatus(
1077
1077
* - Allocate a big enough buffer
1078
1078
* - And read the disk
1079
1079
*/
1080
- Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_VFAT );
1080
+ Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_BUFFER );
1081
1081
if (Sector == NULL )
1082
1082
{
1083
1083
return STATUS_INSUFFICIENT_RESOURCES ;
@@ -1086,7 +1086,7 @@ FAT16SetDirtyStatus(
1086
1086
Status = VfatReadDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1087
1087
if (!NT_SUCCESS (Status ))
1088
1088
{
1089
- ExFreePoolWithTag (Sector , TAG_VFAT );
1089
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1090
1090
return Status ;
1091
1091
}
1092
1092
#endif
@@ -1099,7 +1099,7 @@ FAT16SetDirtyStatus(
1099
1099
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
1100
1100
CcUnpinData (Context );
1101
1101
#else
1102
- ExFreePoolWithTag (Sector , TAG_VFAT );
1102
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1103
1103
#endif
1104
1104
return STATUS_DISK_CORRUPT_ERROR ;
1105
1105
}
@@ -1124,7 +1124,7 @@ FAT16SetDirtyStatus(
1124
1124
#else
1125
1125
/* Write back the boot sector to the disk */
1126
1126
Status = VfatWriteDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1127
- ExFreePoolWithTag (Sector , TAG_VFAT );
1127
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1128
1128
return Status ;
1129
1129
#endif
1130
1130
}
@@ -1162,7 +1162,7 @@ FAT32SetDirtyStatus(
1162
1162
* - Allocate a big enough buffer
1163
1163
* - And read the disk
1164
1164
*/
1165
- Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_VFAT );
1165
+ Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_BUFFER );
1166
1166
if (Sector == NULL )
1167
1167
{
1168
1168
return STATUS_INSUFFICIENT_RESOURCES ;
@@ -1171,7 +1171,7 @@ FAT32SetDirtyStatus(
1171
1171
Status = VfatReadDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1172
1172
if (!NT_SUCCESS (Status ))
1173
1173
{
1174
- ExFreePoolWithTag (Sector , TAG_VFAT );
1174
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1175
1175
return Status ;
1176
1176
}
1177
1177
#endif
@@ -1185,7 +1185,7 @@ FAT32SetDirtyStatus(
1185
1185
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
1186
1186
CcUnpinData (Context );
1187
1187
#else
1188
- ExFreePoolWithTag (Sector , TAG_VFAT );
1188
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1189
1189
#endif
1190
1190
return STATUS_DISK_CORRUPT_ERROR ;
1191
1191
}
@@ -1210,7 +1210,7 @@ FAT32SetDirtyStatus(
1210
1210
#else
1211
1211
/* Write back the boot sector to the disk */
1212
1212
Status = VfatWriteDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1213
- ExFreePoolWithTag (Sector , TAG_VFAT );
1213
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1214
1214
return Status ;
1215
1215
#endif
1216
1216
}
@@ -1252,7 +1252,7 @@ FAT32UpdateFreeClustersCount(
1252
1252
* - Allocate a big enough buffer
1253
1253
* - And read the disk
1254
1254
*/
1255
- Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_VFAT );
1255
+ Sector = ExAllocatePoolWithTag (NonPagedPool , Length , TAG_BUFFER );
1256
1256
if (Sector == NULL )
1257
1257
{
1258
1258
return STATUS_INSUFFICIENT_RESOURCES ;
@@ -1261,7 +1261,7 @@ FAT32UpdateFreeClustersCount(
1261
1261
Status = VfatReadDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1262
1262
if (!NT_SUCCESS (Status ))
1263
1263
{
1264
- ExFreePoolWithTag (Sector , TAG_VFAT );
1264
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1265
1265
return Status ;
1266
1266
}
1267
1267
#endif
@@ -1275,7 +1275,7 @@ FAT32UpdateFreeClustersCount(
1275
1275
#ifndef VOLUME_IS_NOT_CACHED_WORK_AROUND_IT
1276
1276
CcUnpinData (Context );
1277
1277
#else
1278
- ExFreePoolWithTag (Sector , TAG_VFAT );
1278
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1279
1279
#endif
1280
1280
return STATUS_DISK_CORRUPT_ERROR ;
1281
1281
}
@@ -1291,7 +1291,7 @@ FAT32UpdateFreeClustersCount(
1291
1291
#else
1292
1292
/* Write back the FSINFO sector to the disk */
1293
1293
Status = VfatWriteDisk (DeviceExt -> StorageDevice , & Offset , Length , (PUCHAR )Sector , FALSE);
1294
- ExFreePoolWithTag (Sector , TAG_VFAT );
1294
+ ExFreePoolWithTag (Sector , TAG_BUFFER );
1295
1295
return Status ;
1296
1296
#endif
1297
1297
}
0 commit comments