Attention is currently required from: Nico Huber, Edward O'Callaghan, Angel Pons.
2 comments:
Patchset:
I have a message to reviewers, below. Thank you!
File usbblaster_spi.c:
static int usbblaster_shutdown(void *data)
{
free(data);
return 0;
}
My own comment on this.
I fully realise this patch is doing two things (removes global state and introduces shutdown function), spent some time thinking about it and decided this is the least of evil.
Without shutdown function there is no way to free the spi data, so it seems relevant here (vs adding empty shutdown function in a separate patch which serves no purpose).
Also usbblaster is doing neither cleanup on init failure nor cleanup on shutdown, but this definitely should go to a separate patch. Here I only free what I allocated myself.
In any case, if people think this should be changed/split, I can do it.
To view, visit change 54044. To unsubscribe, or for help writing mail filters, visit settings.