X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fs390%2Fcrypto%2Fap_bus.c;h=5a699746c357e4090a96812d9770844b6757ef07;hb=efb1e0b07139974b506c90f4e0621d5866ee48b7;hp=48ea0004a56da0dfe51c4251f0af62d0b4679a83;hpb=1686cc1a31f45a3fd090e5d0c6fce777422e13fa;p=linux-2.6-microblaze.git diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 48ea0004a56d..5a699746c357 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c @@ -248,7 +248,8 @@ static inline int ap_test_config(unsigned int *field, unsigned int nr) static inline int ap_test_config_card_id(unsigned int id) { if (!ap_configuration) /* QCI not supported */ - return 1; + /* only ids 0...3F may be probed */ + return id < 0x40 ? 1 : 0; return ap_test_config(ap_configuration->apm, id); }