Re: phy: tegra: xusb: Complete exception handling in probe functions

From: Markus Elfring
Date: Tue Oct 29 2019 - 05:41:22 EST


> I have got the impression then that the exception handling is incomplete so far
> at these source code places.

How do you think about to try the following small script for the semantic patch
language out on the directory âdrivers/phy/tegraâ?

@display@
expression object;
identifier exit;
@@
... when any
object = kzalloc(...)
...
if (...)
{
*kfree(object);
goto exit;
}
...
if (...)
* goto unregister;


Will any search pattern variations become more interesting for corresponding
automatic software transformations?

Regards,
Markus