In the Linux kernel, the following vulnerability has been resolved:
hsr: Prevent use after free in prpcreatetagged_frame()
The prpfillrct() function can fail. In that situation, it frees the skb and returns NULL. Meanwhile on the success path, it returns the original skb. So it's straight forward to fix bug by using the returned value.