Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c9182e0f42c5646e670c2166b6d6638052d574af
Commit:     c9182e0f42c5646e670c2166b6d6638052d574af
Parent:     e6b6e10ac1de116fc6d2288f185393014851cccf
Author:     Peter Oberparleiter <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 27 16:01:29 2007 +0200
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 16:01:39 2007 +0200

    [S390] cio: observe chpid valid flag
    
    Check validity flag of CHPID description data before continuing with
    channel-path initialization.
    
    Signed-off-by: Peter Oberparleiter <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
---
 drivers/s390/cio/chp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/s390/cio/chp.c b/drivers/s390/cio/chp.c
index 6e04521..8a58391 100644
--- a/drivers/s390/cio/chp.c
+++ b/drivers/s390/cio/chp.c
@@ -339,6 +339,10 @@ int chp_new(struct chp_id chpid)
        ret = chsc_determine_channel_path_description(chpid, &chp->desc);
        if (ret)
                goto out_free;
+       if ((chp->desc.flags & 0x80) == 0) {
+               ret = -ENODEV;
+               goto out_free;
+       }
        /* Get channel-measurement characteristics. */
        if (css_characteristics_avail && css_chsc_characteristics.scmc
            && css_chsc_characteristics.secm) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to