diff --git a/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp b/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp index 158b8c511a..d6f19163cc 100644 --- a/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp @@ -433,6 +433,9 @@ read_attributes(int fd, Inode* inode) name[length] = '\0'; Attribute* attribute = new(std::nothrow) Attribute(name, type); + if (attribute == NULL) + return false; + if (attribute->IsProtectedNamespace()) { // Attributes in the protected namespace are handled internally // so we do not load them even if they are present in the