From: Karsten Keil Date: Fri, 1 Jun 2007 07:46:55 +0000 (-0700) Subject: Fix broken CLIR in isdn driver X-Git-Tag: v2.6.22-rc4~34 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=924ad158442a5db3e935efcb6131cbffadd6544c;p=~shefty%2Frdma-dev.git Fix broken CLIR in isdn driver I noticed that CLIR (aka "hide your calling number") in isdn_tty is broken: The at-command parser filters out the required "R" (e.g. ATDR089123456) It's been broken for a *very* long time. Signed-off-by: Karsten Keil Signed-off-by: Matthias Goebl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index ea5f30d4a5a..4e5f87c1e71 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c @@ -2693,8 +2693,9 @@ isdn_tty_getdial(char *p, char *q,int cnt) int limit = ISDN_MSNLEN - 1; /* MUST match the size of interface var to avoid buffer overflow */ - while (strchr(" 0123456789,#.*WPTS-", *p) && *p && --cnt>0) { + while (strchr(" 0123456789,#.*WPTSR-", *p) && *p && --cnt>0) { if ((*p >= '0' && *p <= '9') || ((*p == 'S') && first) || + ((*p == 'R') && first) || (*p == '*') || (*p == '#')) { *q++ = *p; limit--;