Commit a11442fe authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

Staging: most: fix passing a potential null pointer



This patch fixes passing of a potential null pointer.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e4c3045
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -204,6 +204,7 @@ static ssize_t aim_write(struct file *filp, const char __user *buf,
	}
	return actual_len - retval;
error:
	if (mbo)
		most_put_mbo(mbo);
	return err;
}