]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dvb-core: preserve the delivery system at cache clear
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 13 Jan 2012 13:46:36 +0000 (11:46 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 15 Jan 2012 13:12:22 +0000 (11:12 -0200)
The changeset 240ab508aa is incomplete, as the first thing that
happens at cache clear is to do a memset with 0 to the cache.

So, the delivery system needs to be explicitly preserved there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c

index 2ad7faf4529d244a06e05876c5324df882bad30b..f5fa7aa896189db8f1276648278c2df9c10c1e3f 100644 (file)
@@ -904,8 +904,11 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
 {
        struct dtv_frontend_properties *c = &fe->dtv_property_cache;
        int i;
+       u32 delsys;
 
+       delsys = c->delivery_system;
        memset(c, 0, sizeof(struct dtv_frontend_properties));
+       c->delivery_system = delsys;
 
        c->state = DTV_CLEAR;