Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99304
b: refs/heads/master
c: a72f0db
h: refs/heads/master
v: v3
  • Loading branch information
Jan Glauber authored and Herbert Xu committed Jul 12, 2008
1 parent 1c008ce commit fa19ba0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3952f17ed63434cc2154c3765ff97e1d4adab042
refs/heads/master: a72f0dbfd93159acdf2467e5a022b28f763061f6
4 changes: 4 additions & 0 deletions trunk/arch/s390/crypto/crypt_s390.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ static inline int crypt_s390_func_available(int func)
unsigned char status[16];
int ret;

/* check if CPACF facility (bit 17) is available */
if (!(stfl() & 1ULL << (31 - 17)))
return 0;

switch (func & CRYPT_S390_OP_MASK) {
case CRYPT_S390_KM:
ret = crypt_s390_km(KM_QUERY, &status, NULL, NULL, 0);
Expand Down

0 comments on commit fa19ba0

Please sign in to comment.