From 4ba78233478b3f625f480e456c14b2fd9b3c9055 Mon Sep 17 00:00:00 2001 From: Roberto Ragusa Date: Wed, 10 Dec 2003 21:03:44 +0000 Subject: Pid removal fix. Counters converted to int. --- linux/drivers/media/dvb/b2c2/skystar2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/b2c2') diff --git a/linux/drivers/media/dvb/b2c2/skystar2.c b/linux/drivers/media/dvb/b2c2/skystar2.c index 01b1b9d15..1088e4918 100644 --- a/linux/drivers/media/dvb/b2c2/skystar2.c +++ b/linux/drivers/media/dvb/b2c2/skystar2.c @@ -108,7 +108,7 @@ struct adapter { int useable_hw_filters; u16 hw_pids[MAX_N_HW_FILTERS]; u16 pid_list[N_PID_SLOTS]; - u8 pid_rc[N_PID_SLOTS]; // ref counters for the pids + int pid_rc[N_PID_SLOTS]; // ref counters for the pids int pid_count; int whole_bandwidth_count; u32 mac_filter; @@ -1244,6 +1244,7 @@ static int remove_pid(struct adapter *adapter, u16 pid) // remove from the list adapter->pid_count--; adapter->pid_list[i]=adapter->pid_list[adapter->pid_count]; + adapter->pid_rc[i] = adapter->pid_rc[adapter->pid_count]; // hardware setting remove_hw_pid(adapter, pid); } -- cgit v1.2.3