[PATCH 4/4] sr030pc30: don't read a new pointer

2015-08-11 Thread Mauro Carvalho Chehab
sr030pc30_get_fmt() can only succeed if both info-curr_win and info-curr_fmt are not NULL. If one of those vars are null, the curent code would call: ret = sr030pc30_set_params(sd); If the curr_win is null, it will return -EINVAL, as it would be expected. However, if curr_fmt is NULL,

[PATCH 4/4] sr030pc30: don't read a new pointer

2015-08-11 Thread Mauro Carvalho Chehab
sr030pc30_get_fmt() can only succeed if both info-curr_win and info-curr_fmt are not NULL. If one of those vars are null, the curent code would call: ret = sr030pc30_set_params(sd); If the curr_win is null, it will return -EINVAL, as it would be expected. However, if curr_fmt is NULL,