c
prop = of_find_property(np, propname, &size);
if (!prop) {
    // Handle the case where the property wasn't found.
    kfree(propname); // Don't forget to free the allocated memory.
    // ... appropriate error handling ...
    continue; // Or return an error, depending on the context.
}

// ... code that uses 'size' ...
