Skip to content
Commit e639c869 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: pt1: fix logic when pt1_nr_tables is zero or negative



pt1_nr_tables is a modprobe parameter. The way the logic
handles it, it can't be negative. However, user can
set it to zero.

If set to zero, however, it will cause troubles at
pt1_init_tables(), as reported by smatch:
	drivers/media/pci/pt1/pt1.c:468 pt1_init_tables() error: uninitialized symbol 'first_pfn'.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 29236349
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment