summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2
diff options
context:
space:
mode:
authorRoberto Ragusa <devnull@localhost>2003-12-10 21:03:44 +0000
committerRoberto Ragusa <devnull@localhost>2003-12-10 21:03:44 +0000
commit4ba78233478b3f625f480e456c14b2fd9b3c9055 (patch)
treeec3bad22bcb01b502b42dcb0a330615dce00d671 /linux/drivers/media/dvb/b2c2
parent373b604e2c3b07fc4893e7b0bd5202e007955c53 (diff)
downloadmediapointer-dvb-s2-4ba78233478b3f625f480e456c14b2fd9b3c9055.tar.gz
mediapointer-dvb-s2-4ba78233478b3f625f480e456c14b2fd9b3c9055.tar.bz2
Pid removal fix.
Counters converted to int.
Diffstat (limited to 'linux/drivers/media/dvb/b2c2')
-rw-r--r--linux/drivers/media/dvb/b2c2/skystar2.c3
1 files changed, 2 insertions, 1 deletions
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);
}