Tag: cd55ef5a10d1a2ea09853bc5fa40aadaf9f80614

IB/mad: Test ib_create_send_mad() return with IS_ERR(), not == NULL

Author: Julien Brunel <brunel@diku.dk> In case of error, the function ib_create_send_mad() returns an ERR pointer, but never returns a NULL pointer. So testing the return value for error should be done with IS_ERR, not by comparing with NULL. A simplified version of the semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @correct_null_test@ …

Continue reading