Hello, There is an asymmetry between the libsrp functions srp_target_alloc() and srp_target_free(): the former sets the pointer to driver-private data by invoking dev_set_drvdata() while the latter does not clear this pointer. So once srp_target_free() finished invoking dev_get_drvdata() will return a dangling pointer. Would it be a good idea to add the following statement inside srp_target_free() just before this function returns ? dev_set_drvdata(target->dev, NULL); Bart. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html