dib7000p: return error code on allocation failure
Subsystems (2)
PATCH 1/1 dib7000p: return error code on allocation failure
The goto needs to be moved after the assignment.
Signed-off-by Dan Carpenter <[email protected]>
drivers/media/dvb/frontends/dib7000p.c +1 -1
@@ -1577,8 +1577,8 @@ int dib7000pc_detection(struct i2c_adapter *i2c_adap)return -ENOMEM ; rx =kzalloc (2 *sizeof (u8),GFP_KERNEL );if (!rx) { - goto rx_memory_error; ret = -ENOMEM ; + goto rx_memory_error; } msg[0 ].buf = tx;